
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>setdlgitem()</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetDlgItem()
Set the text in a control in a dialog box
------------------------------------------------------------------------------
Syntax
SetDlgItem( <hWndDlg>, <nId>, <cText> | <nValue> ) --> nil
Arguments
<hWndDlg> is the handle of the dialog window.
<nId> is the numeric id of the control.
<cText> is an optional string to be put in the control.
<nValue> is an optional numeric value, to be converted to a
string and put in the control.
Returns
NIL.
Description
This is just another way of sending the WM_SETTEXT message to
a control. For example, see EDIT.PRG.
Example
SetDlgItem( hWnd, nEditId, cInitialText )
See Also: DialogBox() GetDlgItmInt() GetDlgItmText()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson