Software Archive
Read-only legacy content
17061 Discussions

Highlighing the default in an edit box

davidgraham
Beginner
428 Views
How do I highlight the default in an edit box.
I want the default value highlighted so that I can just type over it automatically.
It is a Wndows API project.
I have looked at the EN_ commands but cann't see anything that looks right.

Thanks, David
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
428 Views
See EM_SETSEL. (EN_* stands for edit box notifications , i.e. the ones that come from edit boxes via WM_COMMAND/WM_NOTIFY, while EM_* stands for edit box messages. MS uses that naming convention more or less consistently throughout).
0 Kudos
davidgraham
Beginner
428 Views
Thanks,
I hadn't realisd the difference between EN_ and EM_
David
0 Kudos
Reply