Commit 4543c278 authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

Handle painting the border if WS_EX_CLIENTEDGE is not set.

parent bd0e7425
...@@ -4423,13 +4423,18 @@ static LRESULT EDIT_WM_NCCreate(HWND hwnd, LPCREATESTRUCTW lpcs, BOOL unicode) ...@@ -4423,13 +4423,18 @@ static LRESULT EDIT_WM_NCCreate(HWND hwnd, LPCREATESTRUCTW lpcs, BOOL unicode)
/* /*
* In Win95 look and feel, the WS_BORDER style is replaced by the * In Win95 look and feel, the WS_BORDER style is replaced by the
* WS_EX_CLIENTEDGE style for the edit control. This gives the edit * WS_EX_CLIENTEDGE style for the edit control. This gives the edit
* control a non client area. Not always. This coordinates in some * control a nonclient area so we don't need to draw the border.
* way with the window creation code in dialog.c When making * If WS_BORDER without WS_EX_CLIENTEDGE is specified we shouldn't have
* modifications please ensure that the code still works for edit * a nonclient area and we should handle painting the border ourselves.
* controls created directly with style 0x50800000, exStyle 0 ( *
* which should have a single pixel border) * When making modifications please ensure that the code still works
* for edit controls created directly with style 0x50800000, exStyle 0
* (which should have a single pixel border)
*/ */
if (lpcs->dwExStyle & WS_EX_CLIENTEDGE)
es->style &= ~WS_BORDER; es->style &= ~WS_BORDER;
else if (es->style & WS_BORDER)
SetWindowLongW(hwnd, GWL_STYLE, es->style & ~WS_BORDER);
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment