CFrameWnd created in dll, child dialogs created in console. How?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I made a dll that exports several functions, 2 of them are: -dllCallCreateWindow -dllCallHandleMessages My console application calls above two functions. Now, in my console application, I want to be able to attach child dialogs to my CFrameWnd. How can I do that? The idea is to have my dll creating a CFrameWnd and running with a default behaviour, but if the user wants to customize the CFrameWnd, he should be able to add child dialogs created by himself in the console application. I can create dialogs in the console application, but I cannot specify the parent window (If I use the CWnd object returned by the dllCallCreateWindow, the application crashes). Any help is greatly appreciated :)