"Dmitry Timoshkov" dmitry@baikal.ru writes:
Why WM_LBUTTONUP should be different from other kinds of messages? I.e. why all messages could not be passed to DispatchMessage? What if just move DispatchMessageW call right right after PeekMessageW?
Actually the whole function looks very suspicious, especially the busy wait for a mouse message. I think this needs to be redone differently.