|
-
June 24th, 2008, 05:49 AM
#1
Modal dialog and messages
'lo everybody.
I'm working on this very complex software, and there is this small bug I don't know how to get rid of. Perhaps some of you might be able to help.
Here is what happens : a "splash" window is created at startup while the software performs various initializations. This window is a modal dialog, called with DoModal(). When the initialization is complete, another thread posts a custom WM_USER message to the splash window, which then closes itself with EndDialog(IDOK) and returns from the DoModal() call.
This works fine, except if the splash window is being moved when the message is sent. Under these circumstances, it seems the message is either ignored or lost.
So, is this "normal" behavior? I'm guessing the WM_MOVEWINDOW or whatever message takes priority over the custom WM_USER message. More importantly, how can I correct this? (I'm thinking of making the splash window not moveable, but this obviously is a workaround, not an actual fix.)
Thanks for your help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|