SetDlgItemText (Windows CE 5.0)

Send Feedback

This function sets the title or text of a control in a dialog box.

BOOLSetDlgItemText( HWNDhDlg, intnIDDlgItem, LPCTSTRlpString);

Parameters

  • hDlg
    [in] Handle to the dialog box that contains the control.
  • nIDDlgItem
    [in] Identifies the control with a title or text that is to be set.
  • lpString
    [in] Long pointer to the null-terminated string that contains the text to be copied to the control.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

The SetDlgItemText function sends a WM_SETTEXT message to the specified control.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.
Link Library: Dlgmgr.lib.

See Also

GetDlgItemInt | GetDlgItemText | SetDlgItemInt | WM_SETTEXT | Dialog Boxes Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.