Hi,
In my program i got a few edit control box in my dialog. I want when the user click on each edit control box , it will auto highlight the text inside.
After search the forum and msdn i find that SetSel function can done this task. But after i try, it still cannot do what i want to do..
If you have the handle to the edit control box, then you can send a message to that to highlight everything: SendMessage(hwnd, EM_SETSEL, 0, -1);
Where "hwnd" is the handle to your edit control box, usually a handle for an edit control box will be returned from a CreateWindow or CreateWindowEx function: HWND hwnd=CreateWindow("EDIT", ...);