|
-
January 20th, 2013, 06:50 AM
#11
Re: How to call Dialog window (formed as resource) from a .DLL
 Originally Posted by Igor Vartanov
BTW, creating window in C++ constructor is a bad style in MFC.
thanks Igor. I adapted 1st solution. Now it's much better, but still not perfect.
When I load my project, the dialog window doesn't appear (from VSIM27 to VSIM29 on the picture).
It appears only when I restart already loaded project (from VSIM29 to VSIM30). It was not the case when I excersized with simple window (not resource-based).
Moreover CAD tool becames instable ... after about 2 min its window dissappeared.
Probably it's due to destroy issues, that I didn't yet implement.
I'll try to advance in this way. I appologize in advance for stupid questions:
1. Shoud I call DestroyWindow() in the Dialog class destructor?
2.
And C++ object is deleted explicitly in PostNcDestroy() handler
Could you, please develop a little bit more this issue. Unfortunately I'm not aware of PostNcDestroy().
Thank you in advance,
Pavel.
Pixie3_GUI_displaying.JPG
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|