Quote Originally Posted by Igor Vartanov View Post
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