开发者

creating Window in MFC

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜