Hi,

Sorry for this message, I can't understand well what you're searching to do...
AfxGetApp() can be used to have a pointer to CWinApp class...
So your application is a Dialog based one ???
How do you define your class DlgClass1 ??

To have a DlgClass2 that inherits from a DlgClass1 you have to declare
class DlgClass2 : public DlgClass1

But I can be wrong with you question.. Can you explain it with more simple words... with more details about what you're looking for and how you try to do it. I understand better code than pure English language.

Then I'll try to help you better.

Nath.