CButton.GetTextLengthmethod
Retrieves the length of the text in a button control.
Syntax
FUNCTION GetTextLength (BYVAL hButton AS HWND) AS LONG
Return value
The return value is the length of the text in characters, not including the terminating null character.
Description
Determines the length, in characters, of the text associated with a button.
Example
DIM cbLen AS LONG = CButton.GetTextLength(hButton)
Reference
- Include file
CButton.inc - Defined in AfxNova/CButton.inc:289
- Documented in Windows/WIndows Controls/CButton Class.md
- Topic: CButton Class