Handle the EN_SETFOCUS message yourself and do this in the EN_SETFOCUS handler:
m_cEditCtrl.SetSel(0, -1, FALSE);
Hope that helps :-D Dominik
_outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;) (doesn't work on NT)