get_window_text_length


int get_window_text_length(handle window)

This function obtains the length (in characters) of the window's text.

Parameters

handle window

The handle of the window whose text length is being queried.

Return

int

Zero The window has no text or an error occurred.
Other The length (in characters) of the text of the window.

Notes

When single and double byte character sets are mixed, this function may return a value greater than the actual text length. The return value is at least as large as the text length, so it may be used as a guide to buffer allocation.

The message message::get_text_length is used to obtain the result.