开发者

How to handle child window messages in MFC

开发者 https://www.devze.com 2023-02-03 19:23 出处:网络
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 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

精彩评论

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