You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Learn more about: Creating and Displaying Dialog Boxes
title
Creating and Displaying Dialog Boxes
ms.date
11/04/2016
helpviewer_keywords
modal dialog boxes [MFC], creating
opening dialog boxes
modeless dialog boxes [MFC], creating
MFC dialog boxes [MFC], creating
MFC dialog boxes [MFC], displaying
ms.assetid
1c5219ee-8b46-44bc-9708-83705d4f248b
Creating and Displaying Dialog Boxes
Creating a dialog object is a two-phase operation. First, construct the dialog object, then create the dialog window. Modal and modeless dialog boxes differ somewhat in the process used to create and display them. The following table lists how modal and modeless dialog boxes are normally constructed and displayed.
Construct CDialog, then call DoModal member function.
You can, if you want, create your dialog box from an in-memory dialog template that you have constructed rather than from a dialog template resource. This is an advanced topic, however.