Click to See Complete Forum and Search --> : CEdit control, I use SetSel to select some text in an edit control, but don't shows it in the screen


Braulio
April 19th, 1999, 06:53 AM
Hi,

I have and CEdit control, and I want to show to the user in blue (selected) some text, I use SetSel to select some text in an edit control, but don't shows it in the screen ( the blue thing), How can I do this ?

Thanks, Bye !
Braulio

Masaaki
April 19th, 1999, 11:00 AM
Hi.

SetSel only works when the edit box has a focus in OninitDialog().
Otherwise, you need additional code when you want to work SetSel
tab key.
Did you set a focus?

HTH.
-Masaaki Onishi-