I have a dialog box with an edit control created using the CreateWindowEx function.
CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD | WS_VSCROLL | WS_EX_OVERLAPPEDWINDOW | WS_TABSTOP | WS_VISIBLE | ES_LEFT | ES_MULTILINE | ES_WANTRETURN | ES_AUTOVSCROLL ,
17, 40, 200, 220, parentHWND, (HMENU)IDC_EDIT1, GetModuleHandle(NULL), NULL);
I then use SendMessage( hwnd, WM_SETTEXT .... ) function to set the text in the edit box.
SendMessageW(hwnd, WM_SETTEXT, 0,(LPARAM)theText );
The problem is that the text gets highlighted which i do not want.
I've tried doing
but it still does not clear the selection. Is there a way to do this or what am i doing wrong?