I am trying to create an edit control with the usual three-dimensional border around it (in any case, in the classic Windows style), but there is only 1px black border around it. Here is my call to CreateWindowEx :
return CreateWindowEx(0, "EDIT", "E:\\bk", WS_VISIBLE | WS_CHILD | WS_BORDER | ES_LEFT, 87, 81, 150, 17, main_window.hwnd, (HMENU)5, hInstance, NULL);
If I exclude WS_BORDER then this is just a white box. Any ideas on what's wrong here?
Update
WS_EX_CLIENTEDGE did the trick. I donβt know anything about manifest files or how to make a window more modern, such as Windows (instead of XP), instead of short three-dimensional borders. But when I find out all this, will WS_EX_CLIENTEDGE force them to use these themes instead, or does it provide a 3D look?
source share