Standard dialogs

In Windows, it's possible to define dialogs. Unlike windows, dialogs are intended to be populated with controls such as buttons, boxes, and text fields. A dialog may be modal, which means that the other windows of the application become disabled until the dialog is closed. In the next chapter, we will look into how we build our own dialogs.

However, in this section, we will look into the Windows standard dialogs for saving and opening files, choosing fonts and colors, and printing. Small Windows supports standard dialogs by wrapping the Win32 API function, which provides us with the dialogs.

The Save dialog

The SaveDialog function displays the standard Save dialogs.

The filter parameters filter the file types to be displayed. Each ...

Get C++ Windows Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.