Listing 6: Code to display a simple dialog

GetDialogFromResources(theControlList, theDialogInfo);
Dialog dlg(theControlList, theDialogInfo);
sInt16 whichButton = dlg.DoModal();

— End of Listing —