mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Store the new style before redrawing and repositioning the control.
This commit is contained in:
parent
5685659d75
commit
d7dd3e37c8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue