I have a subclassed edit control.
when a user clicks the control and the WM_SETFOCUS message is sent I need to determine the character location of the carat.
If I send an EM_GETSEL to the control in the WM_SETFOCUS handler I always get 0,0 back. I can send messages to get the text and to get the text length and they work fine.
If I send the EM_GETSEL message to the control from any place other than the WM_SETFOCUS handler it works fine. The same holds true for the EM_SETSEL message.
Any help/workaround is appreciated.
LarryMc