Possible to use CFontDialog in PropertySheet?
-
Hi, Thank you for dropping by. I want to display a dialog box to the user so that they can choose a font. Now CFontDialog does this very nicely. However, all my programs options are in "tabbed Property sheets" so that the user can find all the config stuff in one place. What I would like to do is to add the CFontDialog as a Property Page to the Property Sheet along with all the other config dialogs. Is this possible? Thank you. P.S. I am using VC++ v6 Michael Thomas
-
Hi, Thank you for dropping by. I want to display a dialog box to the user so that they can choose a font. Now CFontDialog does this very nicely. However, all my programs options are in "tabbed Property sheets" so that the user can find all the config stuff in one place. What I would like to do is to add the CFontDialog as a Property Page to the Property Sheet along with all the other config dialogs. Is this possible? Thank you. P.S. I am using VC++ v6 Michael Thomas
-
Hi, Thank you for dropping by. I want to display a dialog box to the user so that they can choose a font. Now CFontDialog does this very nicely. However, all my programs options are in "tabbed Property sheets" so that the user can find all the config stuff in one place. What I would like to do is to add the CFontDialog as a Property Page to the Property Sheet along with all the other config dialogs. Is this possible? Thank you. P.S. I am using VC++ v6 Michael Thomas
Instead of using Multiple Inheritance and deriving your class from CPropertyPage and CFontDialog you should be able to create a dialog template and include the CFontDialog inside of it, much the same way as you can with CFileDialog. I don't have the method to do this handy right now, but it involves creating a dialog template, and including a static or group box with a special id stc=0x30 or something like that. There are several examples on the net. That should work, allthough I have not tried it yet.
-
Hi, Thank you for dropping by. I want to display a dialog box to the user so that they can choose a font. Now CFontDialog does this very nicely. However, all my programs options are in "tabbed Property sheets" so that the user can find all the config stuff in one place. What I would like to do is to add the CFontDialog as a Property Page to the Property Sheet along with all the other config dialogs. Is this possible? Thank you. P.S. I am using VC++ v6 Michael Thomas
Take a look at "advanced programming with Microsoft Visual C++" from microsoft press, at it's chapter 7 it explains nicely/easily how to insert common dialogs inside a normal one. If you want you can insert a common dialog into a property page (in the same way). If you don't have the book, send me a mail so I can send you the code that's inside the CDROM that came with the book. Regards.