I'd like to be able to initialize a CPropertyPage object with a dialog resource from a different module. Is this possible?
I'd like to be able to initialize a CPropertyPage object with a dialog resource from a different module. Is this possible?
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
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.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Ok thanks, I'll give it a shot.
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials