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.
精彩评论