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....