comctl32/listview: Don't query header if it isn't created.
This commit is contained in:
parent
9f548bd9b8
commit
aaec03347d
|
@ -10325,6 +10325,9 @@ static void LISTVIEW_UpdateSize(LISTVIEW_INFO *infoPtr)
|
||||||
infoPtr->rcList.bottom = max (infoPtr->rcList.bottom - 2, 0);
|
infoPtr->rcList.bottom = max (infoPtr->rcList.bottom - 2, 0);
|
||||||
}
|
}
|
||||||
else if (infoPtr->uView == LV_VIEW_DETAILS)
|
else if (infoPtr->uView == LV_VIEW_DETAILS)
|
||||||
|
{
|
||||||
|
/* if control created invisible header isn't created */
|
||||||
|
if (infoPtr->hwndHeader)
|
||||||
{
|
{
|
||||||
HDLAYOUT hl;
|
HDLAYOUT hl;
|
||||||
WINDOWPOS wp;
|
WINDOWPOS wp;
|
||||||
|
@ -10339,6 +10342,7 @@ static void LISTVIEW_UpdateSize(LISTVIEW_INFO *infoPtr)
|
||||||
TRACE(" after SWP wp=%d,%d (%dx%d)\n", wp.x, wp.y, wp.cx, wp.cy);
|
TRACE(" after SWP wp=%d,%d (%dx%d)\n", wp.x, wp.y, wp.cx, wp.cy);
|
||||||
|
|
||||||
infoPtr->rcList.top = max(wp.cy, 0);
|
infoPtr->rcList.top = max(wp.cy, 0);
|
||||||
|
}
|
||||||
infoPtr->rcList.top += (infoPtr->dwLvExStyle & LVS_EX_GRIDLINES) ? 2 : 0;
|
infoPtr->rcList.top += (infoPtr->dwLvExStyle & LVS_EX_GRIDLINES) ? 2 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue