Reputation: 4663
I have some window. User can drag it, resize etc. At some point there can be a message that should be shown in modal window. I'm creating such a window as child and setting parent window to disabled. Everything works ok except the case when I'm dragging a parent window during the child creation. I used spy to see messages and found that in that case my child window doesn't receives WM_ENTERSIZEMOVE
message. It seems that parent's WM_ENTERSIZEMOVE
blocks one for child. I tried to manually send WM_EXITSIZEMOVE
for the parent but unfortunatelly this doesn't works.
Upvotes: 1
Views: 213
Reputation: 37202
Send the WM_CANCELMODE
message to your parent window before displaying the dialog box.
Sent to cancel certain modes, such as mouse capture. For example, the system sends this message to the active window when a dialog box or message box is displayed. Certain functions also send this message explicitly to the specified window regardless of whether it is the active window. For example, the EnableWindow function sends this message when disabling the specified window
Upvotes: 1