Store the new style before redrawing and repositioning the control.

This commit is contained in:
Robert Shearman 2004-11-30 17:28:10 +00:00 committed by Alexandre Julliard
parent 5685659d75
commit d7dd3e37c8
1 changed files with 2 additions and 2 deletions

View File

@ -6675,6 +6675,8 @@ TOOLBAR_StyleChanged (HWND hwnd, INT nType, LPSTYLESTRUCT lpStyle)
TRACE("new style 0x%08lx\n", lpStyle->styleNew);
infoPtr->dwStyle = lpStyle->styleNew;
/* only resize if one of the CCS_* styles was changed */
if ((infoPtr->dwStyle ^ lpStyle->styleNew) & COMMON_STYLES)
{
@ -6682,8 +6684,6 @@ TOOLBAR_StyleChanged (HWND hwnd, INT nType, LPSTYLESTRUCT lpStyle)
InvalidateRect(hwnd, NULL, TRUE);
}
infoPtr->dwStyle = lpStyle->styleNew;
}
return 0;