windows_programming_notes.nbk: Home | Index | Next Page: SetDlgItemText | Previous Page: SetDCPenColor


 SetDlgItemInt

The SetDlgItemInt function sets the text of a control in a dialog box to the string representation of a specified integer value.

Syntax

    BOOL SetDlgItemInt(
        HWND hDlg,
        int nIDDlgItem,
        UINT uValue,
        BOOL bSigned
    );

Parameters

Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

To set the new text, this function sends a WM_SETTEXT message to the specified control.

Function Information


windows_programming_notes.nbk: Home | Index | Next Page: SetDlgItemText | Previous Page: SetDCPenColor


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time