Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested Classes in MFC (Property Sheets/Pages)

Status
Not open for further replies.

earwicker

Programmer
Jun 27, 2001
1
US
I've built a property sheet in MFC with 6 property pages. The entire structure is embedded in a Dialog box. I'm using the DDX and message mapping functionality of MFC.

What I WANT to do is to nest the property page classes in the property sheet (for reasons of encapsulation), but when I make the necessary modifications to my code, the DECLARE DYNCREATE macro crashes . . . . it doesn't have access to the nested class (so it says). It's likely there may be message mapping issues, and DDX issues as well . . . .

So . . .

Before I beat my head against the wall and damage the panelling, has anyone tried to nest classes in a similar situation? If so, do you know any tricks, or is it just not worth the effort?

Thanks in advance,
---e[ch]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top