|
-
May 21st, 2012, 09:38 PM
#1
RichEdit and SetSel when tabbing
I have a dialog that has a RichEdit (called IDC_MESSAGE) in it. If there is something in the RichEdit and you tab into it, it selects everything. What I want to do is put the cursor at the beginning with nothing selected.
I know I need to use SetSel and I believe I need to set it when the RichEdit gets focus... but, can't figure out how to catch that. Looking in the ClassWizard, the only options I have for the RichEdit is the EN_SETFOCUS and NM_SETFOCUS. I tried setting both of those but neither one seems to fire when tabbing into that field.
Not sure where to go from here.
Any help is greatly appreciated....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|