开发者

How to handle child window messages in MFC

How to handle messages of sub window in MFC.开发者_如何学Python I created a menu and when I'm clicking the menu, the program creates a dialog window.

How do I close the menu window when its dialog window is closed?


If dialog is modal:

Close the parent window after returning from DoModal;

You don't return from DoModal until the dialog is closed.

If dialog is not modal:

When you initialize the dialog, send a pointer of the parent to the dialog.

Close the parent using the pointer, where you capture the dialog close event.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜