Platform SDK: Windows User Interface

Common Dialog Box Functions

The following functions are used with common dialog boxes.

Function Description
ChooseColor Creates a Color dialog box that enables the user to select a color.
ChooseFont Creates a Font dialog box that enables the user to choose attributes for a logical font.
CommDlgExtendedError Returns a common dialog box error code.
FindText Creates a system-defined modeless Find dialog box that lets the user specify a string to search for and options to use when searching for text in a document.
GetFileTitle Retrieves the name of the specified file.
GetOpenFileName Creates an Open dialog box that lets the user specify the drive, directory, and the name of a file or set of files to open.
GetSaveFileName Creates a Save dialog box that lets the user specify the drive, directory, and name of a file to save.
PageSetupDlg Creates a Page Setup dialog box that enables the user to specify the attributes of a printed page.
PrintDlg Displays a Print dialog box.
PrintDlgEx Displays a Print property sheet that enables the user to specify the properties of a particular print job.
ReplaceText Creates a system-defined modeless dialog box that lets the user specify a string to search for and a replacement string, as well as options to control the find and replace operations.

The following application-defined hook procedures are used with common dialog boxes.

CCHookProc
CFHookProc
FRHookProc
OFNHookProc
OFNHookProcOldStyle
PagePaintHook
PageSetupHook
PrintHookProc
SetupHookProc