1.7.6 Functions for Dialog Boxes

The functions listed in this section create, alter, test, and destroy dialog boxes and controls within dialog boxes. Following are the functions for dialog boxes:

Function Description

CheckDlgButton Places or removes a check mark, or changes the state of a three-state button or check box.
CheckRadioButton Selects a specified radio button and clears all others.
CreateDialog Creates a modeless dialog box.
CreateDialogIndirect Creates a modeless dialog box from a template.
CreateDialogIndirectParam Creates a modeless dialog box from a template and then passes data to it.
CreateDialogParam Creates a modeless dialog box and then passes data to it.
DefDlgProc Provides default processing for any Windows messages that a dialog box with a private window class does not process.
DialogBox Creates a modal dialog box.
DialogBoxIndirect Creates a modal dialog box from a template.
DialogBoxIndirectParam Creates a modal dialog box from a template and then passes data to it.
DialogBoxParam Creates a modal dialog box and then passes data to it.
DlgDirList Fills a list box with names of files matching a path.
DlgDirListComboBox Fills a combo box with names of files matching a specified path and filename.
DlgDirSelect Copies the current selection from a list box to a string.
DlgDirSelectComboBox Copies the current selection from a combo box to a string.
EndDialog Frees resources and destroys windows associated with a modal dialog box.
GetDialogBaseUnits Retrieves the base dialog units used by Windows when creating a dialog box.
GetDlgCtrlID Returns the identifier of a control window.
GetDlgItem Retrieves the handle of a dialog box control in the given dialog box.
GetDlgItemInt Translates the control text of a control into an integer value.
GetDlgItemText Copies a control's text into a string.
GetNextDlgGroupItem Returns the window handle of the next item in a group.
GetNextDlgTabItem Returns the window handle of the next or previous item.
IsDialogMessage Determines whether a message is intended for the given modeless dialog box.
IsDlgButtonChecked Tests whether a button is selected.
MapDialogRect Converts the dialog box coordinates to client coordinates.
SendDlgItemMessage Sends a message to a control within a dialog box.
SetDlgItemInt Sets the title or text of a control to a string that represents an integer.
SetDlgItemText Sets the title or text of a control to a string.

For detailed information about the functions for dialog boxes, see the Microsoft Windows Programmer's Reference, Volume 2.