CDialog
lastmod 2021-02-26created 2021-02-262 edits
Describes how to create a dialog.
Types of dialogs
There are two types of dialogs, as follows.
- Modal dialog.
- While the dialog is displayed, it monopolizes all control of the program, so no other work can be done until the dialog is closed.
- Modaless dialog.
- Even while the dialog is displayed, it does not monopolize control of the program, so you can push the dialog aside for a moment and do other work.
| - | Modal | Modaless |
| Creation | | |
| Destruction | | |
| Instance declaration | Stack (local variable), heap (dynamic allocation) | Heap (dynamic allocation) |
| Sample |
Checking the status of a modaless dialog
You can check the status of the dialog with the methods below.
| Return value | | |
| TRUE | The dialog is ready to use. | The dialog is actually visible. |
| FALSE | The dialog is not ready to use. | The dialog is not visible. |