Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- M E W E L - <b>em_getsel</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
EM_GETSEL

  Retrieves the current text selection points.

Parameters
  wParam is not used.
  lParam is a pointer to a user-supplied far pointer to a 2-word memory
   location. The 0-based starting point will be copies to the first word and
   the ending point will be copied to the second word.

Returns
  The current selection point. If there is no text selected, then the
   current cursor position within the edit buffer is returned.

Example
  WORD markers[2];
  WORD *pMarkers;
  pMarkers = markers;
  SendMessage(hEdit, EM_GETSEL, 0, (DWORD) (WORD far **) &szHandle);

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson