Original Post
Whenever I create a EDIT control with the following code it looks very flat and unappealing without any type of border. I'm trying to get it to look like the basic dialog edit box with sunken edges, but I can't seem to find the right combonation of styles. HWND WidthEdit = CreateWindow(L"Edit",NULL,WS_CHILD|WS_VISIBLE|ES_NUMBER, 50,30,100,30,m_window,(HMENU)EDIT_WIDTH,GetModuleHandle(NULL),NULL); I'm also curious as to whether or not it is preferred to create forms at runtime like this, or just package them into a resource file and load it as a Dialog Box. Thanks in advance.