Click here to Skip to main content
15,891,780 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've got a CPropertySheet derived class with a load of CPropertyPages. Is there a way I can put a PropertySheet (and pages) onto one of the pages?

It might make for an awful GUI, but I'm just experimenting at the moment.

1. I don't think I can derive a class from both PropertySheet and PropertyPage - MFC doesn't like it (Message Maps and the like can only call into one parent class for example).

2. I've created (as in PropertySheet->Create) a PropertySheet class on the page however it seems determined to be a floating dialog. Perhaps this is a windowing question - how do I embed the new PropertyPage on my PropertySheet?

m_Tab.Create (this);

I get a floating modeless dialog

m_Tab.Create (this, WS_CHILD);

I can't see my sheet anymore (page is blank)

m_Tab.SetParent (this);

Still can't see anything


Is there some combination of Create and SetWindowPos I could be trying?

What I have tried:

Code snippets above + Google 'Embed'
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900