开发者

How to destroy a modeless dialog when it loses the focus?

开发者 https://www.devze.com 2023-02-16 13:09 出处:网络
I have a created modeless dialog and placed a grid on top of this dialog(Grid completely overlaps on dialog).This will be shown when user clicks F2.Now when user clicks left mouse button outside the d

I have a created modeless dialog and placed a grid on top of this dialog(Grid completely overlaps on dialog).This will be shown when user clicks F2.Now when user clicks left mouse button outside the dialog i want to destroy this dialog. Can ple开发者_如何学Pythonase somebody suggest how can i destroy the dialog?? (Just like Tool tip gets destroyed when clicked outside)


You have to store a pointer to the dialog in your main window. When you want to destroy it, call CDialog::DestroyWindow() on it.

0

精彩评论

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