|
-
September 28th, 2010, 08:07 AM
#1
MFC Feature Pack - How to create CMFCPropertySheet control?
Hello.
I'm working on a project that uses the MFC Framework to create the GUI. More specifically, the so-called "Feature Pack" of MFC is used. As I haven't used the MFC Framework until now, I currently try to understand the basics. So I read a few tutorials and I think the "CMFCPropertySheet" control would be what I need. So created a new "empty" MFC project in Visual Studio and now I try add a CMFCPropertySheet control to the main window. Later I will add the Pages, but first I need to add the control.
What I have done so far is deriving my own Class "CMyPropSheet" from "CMFCProperty" sheet. I also added a method OnCreate() to my own class, which I think is the correct place to create and add the Sheets later. But now, how the heck do I create an instance of my CMPropSheet and add it to my main window? I think I must do this inside the OnCreate() method of the "MainFrm" class. Is that correct? If so, what is correct method to call? Create or CreateEx and what parameters do I need to pass? I couldn't find any example on this.
What I tried is:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|