If it make sence, you couldn't do it directly with dialogs created with MessageBox...
If there are some dialogs obtained by
hDlg = CreateWindow/CreateDialog
then call
CloseWindow/DestroyWindow(hDlg); Ion Filipski
What I really need to know is: Is it possible to force a modal dialog that I have created by clicking the mouse outside of the dialog window. Similar to a popup window. The dialog class would have control so I would need to trap the mouse click from the dialog class.
Yes, it is a bad atyle as Ionel said, but anyway you can get handle to a window from point with coords X, Y
POINT pt;
HWND xwnd;
pt.x = 10;
pt.y = 20;
///.....
xwnd = WindowFromPoint(pt);
...do something what do you want with xwnd Ion Filipski
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.