开发者

creating Window in MFC

开发者 https://www.devze.com 2023-02-11 01:56 出处:网络
When I run a create window program, it exits after a small time and I\'m unable to see that window. What am I doing wro开发者_如何学编程ng?After you call Create you should also call the function ShowW

When I run a create window program, it exits after a small time and I'm unable to see that window. What am I doing wro开发者_如何学编程ng?


After you call Create you should also call the function ShowWindow for the newly create window. Something like:

CDialog myDialog;
myDialog.Create(MYDIALOG::IDD, this);
myDialog.ShowWindow(SW_SHOW);

Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消