Cannot get EM_CHARFROMPOS to work with TextBox
I'm so tired.
really.
To get the character nearest to the mouse pointer, in my RichTextBox, I send the EM_CHARFROMPOS message.
It works just fine.
But when I try to do the same thing in my TextBox, it doesn't matter how much I yell or cry or change LPARAM's value... it just won't give me anything else then 0 in return.
Help?
Anyone?
EM_CHARFROMPOS=WM_USER + 39 won't work with TextBox (Resolved)
Thanks!
Apperently the EM_CHARFROMPOS constant I used with my RichTextBox wasn't valid for the TextBox
Works only with RTB:
Private Const WM_USER=&H400
Private Const EM_CHARFROMPOS=WM_USER + 39
Works with both RTB & TextBox
Private Const EM_CHARFROMPOS=&HD7