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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.