O'Reilly logo

The Old New Thing: Practical Development Throughout the Evolution of Windows by Raymond Chen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter Ten. The Inner workings of the Dialog Manager

I THINK A lot of confusion about the dialog manager stems from not really understanding how it works. It’s not that bad. After some warm-up discussion on dialog procedures, I go into the history of dialog templates, using that as a basis for understanding how dialog boxes are created, then move on to the dialog message loop, and wrap up with some topics regarding navigation.

On the dialog procedure

THERE REALLY ISN’T much to a dialog procedure. For each message, you can choose to handle it or not, just like a window procedure. But unlike a window procedure, the way you express this decision is done by the return value.

Returning values from a dialog procedure

For some reason, the way values ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required