You create the dialog in the dialog editor and then use the DialogBox function to show the dialog. You also need to write a DlgProc for the dialog and pass it's name to DialogBox.