Advertisement

Weird Win32 Visual style change.

Started by November 23, 2019 11:46 AM
2 comments, last by Jman2 4 years, 9 months ago

Hello,
Basiclaly when i move my window left and right a few times without letting go it flips the visual style, does anybody know why this happens? bare in mind that my code doesnt change anything during movment as in i dont call SetWindowLongW.

Thanks.

image.png.efe37b5d818199314fdca6d09a406b22.png

Vs:

image.png.bb3fbb446d9b065e39658ccdfd8b9a2d.png

 

Does it go back to normal after you release mouse?

That kind of style change happens when Windows thinks program is not responding. Windows thinks program is not responding if its message loop is not running. Perhaps your implementation of moving window is preventing message loop from running properly?

Advertisement

No, the window style stays the same for the rest of the running application. I think you are correct though, the peekmessage doesnt produce the idle messages during the mouse move event thus the loop stalls waiting for the exit size move message. So how do you keep the application running in this case?

This topic is closed to new replies.

Advertisement