You use controls in dialog boxes much as you use them in regular windows. When a control is in a dialog box, however, you can use several special functions to access the control and send messages to it. For example, the SendDlgItemMessage function sends a message to a control in the dialog box, and the SetDlgItemText function sets the text of a control. You need not supply the control handle in these functions. Instead, you supply the dialog box handle and the control identifier. If you want the control handle, you use the GetDlgItem function.