DIALOG (located in \TOOLKIT\SAMPLES\PM\DIALOG) demonstrates how to associate a dialog box with a standard window. The dialog box is defined as a dialog template in a resource file.
This sample program also demonstrates how to implement entry fields, push buttons, and message boxes. Message boxes are displayed only for error conditions.