programming:windows:WM_SETTEXTWhat links here?
An application sends a WM_SETTEXT message to set the text of a window.

Syntax

To send this message, call the SendMessage function as follows.

    lResult = SendMessage(      // returns LRESULT in lResult     
       (HWND) hWndControl,      // handle to destination control     
       (UINT) WM_SETTEXT,       // message ID     
       (WPARAM) wParam,         // = (WPARAM) () wParam;    
       (LPARAM) lParam          // = (LPARAM) () lParam; 
    );   


Parameters

Return Value
The return value is TRUE if the text is set. It is FALSE (for an edit control), LB_ERRSPACE (for a list box), or CB_ERRSPACE (for a combo box) if insufficient space is available to set the text in the edit control. It is CB_ERR if this message is sent to a combo box without an edit control.

Remarks
The DefWindowProc function sets and displays the window text. For an edit control, the text is the contents of the edit control. For a combo box, the text is the contents of the edit-control portion of the combo box. For a button, the text is the button name. For other windows, the text is the window title.

This message does not change the current selection in the list box of a combo box. An application should use the CB_SELECTSTRING message to select the item in a list box that matches the text in the edit control.

Message Information
programming:windows:WM_SETTEXT
MC6802 - instruction set
MC6802 - assembler - directives - fcb
linux - user administration
MC6802 - assembler - directives - equ
MC6802 - instruction set - Rotate Left Accumulator
MC6802 - assembler - directives - fill
Raspberry PI - add a user
MC6802 - instruction set - Arithmetic Shift Right Accumulator
linux - software
AutoCAD - Dialog Control Language (DCL) - (load_dialog dclfile)
MC6802 - instruction set - Decimal Adjust A
programming - target - X Windows (X11)
MC6802 - instruction set - Transfer CCR to Accumulator A
embedded systems - bacnet - Analog Input properties
Raspberry PI - BCM2835 C library
filename:programming:windows:WM_SETTEXT
filename:programming%3Awindows%3AWM_SETTEXT
last edit:March 27 2010 16:43:10 (5648 days ago)
ct = 1757738126.000000 = September 13 2025 00:35:26
ft = 1269722590.000000 = March 27 2010 16:43:10
dt = 488015536.000000