Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Sets the text of a static control.
Syntax
int Static_SetText(
HWND hwndCtl,
LPTSTR lpsz
);
Parameters
hwndCtl
Type: HWND
A handle to the control.
lpsz
Type: LPTSTR
A pointer to a null-terminated string to be used as the static control text.
Return value
Type: int
If the function succeeds, the return value is nonzero. If it fails, the return value is zero.
Remarks
The macro expands to a call to SetWindowText.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | windowsx.h |