To create and use a dialog box, follow these steps:
1.Create a dialog box template and add it to the resource-definition file.
2.Create a dialog box procedure to support the box.
3.Export the dialog box procedure.
4.Display the dialog box by calling the DialogBox or DialogBoxIndirect function (for a modal dialog box) or the CreateDialog or CreateDialogIndirect function (for a modeless dialog box).
5.Close the dialog box by calling either the EndDialog function (for modal dialog boxes) or the DestroyWindow function (for modeless dialog boxes).