Store the new style before redrawing and repositioning the control.
This commit is contained in:
parent
5685659d75
commit
d7dd3e37c8
|
@ -6675,6 +6675,8 @@ TOOLBAR_StyleChanged (HWND hwnd, INT nType, LPSTYLESTRUCT lpStyle)
|
||||||
|
|
||||||
TRACE("new style 0x%08lx\n", lpStyle->styleNew);
|
TRACE("new style 0x%08lx\n", lpStyle->styleNew);
|
||||||
|
|
||||||
|
infoPtr->dwStyle = lpStyle->styleNew;
|
||||||
|
|
||||||
/* only resize if one of the CCS_* styles was changed */
|
/* only resize if one of the CCS_* styles was changed */
|
||||||
if ((infoPtr->dwStyle ^ lpStyle->styleNew) & COMMON_STYLES)
|
if ((infoPtr->dwStyle ^ lpStyle->styleNew) & COMMON_STYLES)
|
||||||
{
|
{
|
||||||
|
@ -6682,8 +6684,6 @@ TOOLBAR_StyleChanged (HWND hwnd, INT nType, LPSTYLESTRUCT lpStyle)
|
||||||
|
|
||||||
InvalidateRect(hwnd, NULL, TRUE);
|
InvalidateRect(hwnd, NULL, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
infoPtr->dwStyle = lpStyle->styleNew;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue