Chapter Eight. Window Management

THIS CHAPTER FOCUSES on the window manager, starting with some basic design points and then introducing some code to illustrate the various types of modality and then investigating ways we can harness the design of Windows modal loops to accomplish some neat tricks. Nonprogrammers are welcome to skip to the next chapter when the subject matter here becomes a bit too technical.

Why do I get spurious WM_MOUSEMOVE messages?

TO UNDERSTAND THIS properly, it helps to know where WM_MOUSEMOVE messages come from.

When the hardware mouse reports an interrupt, indicating that the physical mouse has moved, Windows determines which thread should receive the mouse move message and sets a flag on that thread’s input queue that ...

Get The Old New Thing: Practical Development Throughout the Evolution of Windows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.