Button_GetText
Gets the text of a button.
Syntax
int Button_GetText(
HWND hwndCtl,
LPTSTR lpch,
int cchMax
);
Parameters
- hwndCtl
A handle to the button control.
lpch
Pointer to the buffer that will receive the text.
cchMax
The maximum number of characters to copy to the buffer, including the NULL terminator.
Return Value
The length, in characters, of the copied string, not including the terminating NULL character.
Remarks
The macro expands to a call to GetWindowText.
Macro Information
- Header Declared in Windowsx.h
- Minimum operating systems Windows 95, Windows NT 3.1