Messages and Windows
-
Hello all, I have dialog based application and I have UDP connection running on bacground ( this takes about 1% from 100Mb network capacity ). Each time when I receive an UDP packet so then the communication class send a message to the main window. And when I drag the main window for the top blue strip (with min and max buttons) so then I lost messages from communication class ... Why? Do you have any solution suggestion? Thank you for any advice and direction to I could go .... KaMinek
-
Hello all, I have dialog based application and I have UDP connection running on bacground ( this takes about 1% from 100Mb network capacity ). Each time when I receive an UDP packet so then the communication class send a message to the main window. And when I drag the main window for the top blue strip (with min and max buttons) so then I lost messages from communication class ... Why? Do you have any solution suggestion? Thank you for any advice and direction to I could go .... KaMinek
Are you saying that when you move the window by dragging the title bar it no longer receives messages? Does it happen only while you move it or do you keep not getting the messages after you stop moving it? Are you sure the messages are lost or maybe just queued behind the window movement messages? Are you sure the (I assume) custom messages you sent to the window are of the proper WM_USER+X range and do not happen to have the same IDs are system messages?
-
Are you saying that when you move the window by dragging the title bar it no longer receives messages? Does it happen only while you move it or do you keep not getting the messages after you stop moving it? Are you sure the messages are lost or maybe just queued behind the window movement messages? Are you sure the (I assume) custom messages you sent to the window are of the proper WM_USER+X range and do not happen to have the same IDs are system messages?
The messages are not WM_USER but they are RegisterWindowMessage(s). Yes, when I drag window by the title bar there hapanned something and my registered message dont swim up in the main window WindowProc handler. This is happaned even if I only press left mouse button on the title bar. Why? Why? Why?