I'd like to be able to initialize a CPropertyPage object with a dialog resource from a different module. Is this possible?
Printable View
I'd like to be able to initialize a CPropertyPage object with a dialog resource from a different module. Is this possible?
I don't see why not - all you need is an instance handle to the dll (AfxLoadLibrary) containing the resource(s) in question and the resource id value (for use with, for example, MAKEINTRESOURCE). Just use the dll instance returned by AfxLoadLibrary in whatever the mfc equivalent of the PROPSHEETPAGE hInstance parameter is.
Ok thanks, I'll give it a shot.