As for the edit control, the style of the borders on the list control
is modified in the dialog loading code, not in the control itself.
This commit is contained in:
parent
a49b5be97d
commit
e79f0768e1
|
@ -2469,32 +2469,13 @@ static LRESULT WINAPI ListBoxWndProc_locked( WND* wnd, UINT msg,
|
||||||
if (!wnd) return 0;
|
if (!wnd) return 0;
|
||||||
if (!(descr = *(LB_DESCR **)wnd->wExtra))
|
if (!(descr = *(LB_DESCR **)wnd->wExtra))
|
||||||
{
|
{
|
||||||
switch (msg)
|
if (msg == WM_CREATE)
|
||||||
{
|
|
||||||
case WM_CREATE:
|
|
||||||
{
|
{
|
||||||
if (!LISTBOX_Create( wnd, NULL ))
|
if (!LISTBOX_Create( wnd, NULL ))
|
||||||
return -1;
|
return -1;
|
||||||
TRACE("creating wnd=%04x descr=%p\n",
|
TRACE("creating wnd=%04x descr=%p\n", hwnd, *(LB_DESCR **)wnd->wExtra );
|
||||||
hwnd, *(LB_DESCR **)wnd->wExtra );
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case WM_NCCREATE:
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* When a listbox is not in a combobox and the look
|
|
||||||
* is win95, the WS_BORDER style is replaced with
|
|
||||||
* the WS_EX_CLIENTEDGE style.
|
|
||||||
*/
|
|
||||||
if ( (TWEAK_WineLook > WIN31_LOOK) &&
|
|
||||||
(wnd->dwStyle & WS_BORDER) )
|
|
||||||
{
|
|
||||||
wnd->dwExStyle |= WS_EX_CLIENTEDGE;
|
|
||||||
wnd->dwStyle &= ~ WS_BORDER;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Ignore all other messages before we get a WM_CREATE */
|
/* Ignore all other messages before we get a WM_CREATE */
|
||||||
return unicode ? DefWindowProcW( hwnd, msg, wParam, lParam ) :
|
return unicode ? DefWindowProcW( hwnd, msg, wParam, lParam ) :
|
||||||
DefWindowProcA( hwnd, msg, wParam, lParam );
|
DefWindowProcA( hwnd, msg, wParam, lParam );
|
||||||
|
|
Loading…
Reference in New Issue