comctl32: Move WM_SIZE handling into WM_WINDOWPOSCHANGED.
This commit is contained in:
parent
44423f915c
commit
e9e09b66a0
|
@ -11584,9 +11584,6 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
case WM_SHOWWINDOW:
|
case WM_SHOWWINDOW:
|
||||||
return LISTVIEW_ShowWindow(infoPtr, wParam, lParam);
|
return LISTVIEW_ShowWindow(infoPtr, wParam, lParam);
|
||||||
|
|
||||||
case WM_SIZE:
|
|
||||||
return LISTVIEW_Size(infoPtr, (short)LOWORD(lParam), (short)HIWORD(lParam));
|
|
||||||
|
|
||||||
case WM_STYLECHANGED:
|
case WM_STYLECHANGED:
|
||||||
return LISTVIEW_StyleChanged(infoPtr, wParam, (LPSTYLESTRUCT)lParam);
|
return LISTVIEW_StyleChanged(infoPtr, wParam, (LPSTYLESTRUCT)lParam);
|
||||||
|
|
||||||
|
@ -11612,13 +11609,14 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
case WM_WINDOWPOSCHANGED:
|
case WM_WINDOWPOSCHANGED:
|
||||||
if (!(((WINDOWPOS *)lParam)->flags & SWP_NOSIZE))
|
if (!(((WINDOWPOS *)lParam)->flags & SWP_NOSIZE))
|
||||||
{
|
{
|
||||||
SetWindowPos(infoPtr->hwndSelf, 0, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE |
|
SetWindowPos(infoPtr->hwndSelf, 0, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE |
|
||||||
SWP_NOZORDER | SWP_NOMOVE | SWP_NOSIZE);
|
SWP_NOZORDER | SWP_NOMOVE | SWP_NOSIZE);
|
||||||
|
|
||||||
if ((infoPtr->dwStyle & LVS_OWNERDRAWFIXED) && (infoPtr->uView == LV_VIEW_DETAILS))
|
if ((infoPtr->dwStyle & LVS_OWNERDRAWFIXED) && (infoPtr->uView == LV_VIEW_DETAILS))
|
||||||
{
|
{
|
||||||
if (notify_measureitem(infoPtr)) LISTVIEW_InvalidateList(infoPtr);
|
if (notify_measureitem(infoPtr)) LISTVIEW_InvalidateList(infoPtr);
|
||||||
}
|
}
|
||||||
|
LISTVIEW_Size(infoPtr, ((WINDOWPOS *)lParam)->cx, ((WINDOWPOS *)lParam)->cy);
|
||||||
}
|
}
|
||||||
return DefWindowProcW(hwnd, uMsg, wParam, lParam);
|
return DefWindowProcW(hwnd, uMsg, wParam, lParam);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue