The ChatWnd::HistoryText_GetCurSelStart function returns the index of the first character currently selected in the message history area (where received messages are displayed).
[number] HistoryText_GetCurSelStart( );
None.
A numeric value representing a position in the text, ranging from 0 to the size of the text currently in the message history area. If nothing is selected, the return value is 0.
This function typically fails for the following reason:
Some versions of Messenger clear the selection in the message history as soon as the control loses focus. Windows Live Messenger 8.1 is known to keep the selection intact.
Object | ChatWnd |
---|---|
Availability | Messenger Plus! Live 4.20 |