Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
697a621a
Commit
697a621a
authored
Nov 01, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unnecessary calls of TOOLBAR_CalcToolbar() (which would be
recalculated due to InvalidateRect()->WM_PAINT anyway).
parent
e0322c7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
22 deletions
+2
-22
toolbar.c
dlls/comctl32/toolbar.c
+2
-22
No files found.
dlls/comctl32/toolbar.c
View file @
697a621a
...
...
@@ -1223,8 +1223,6 @@ TOOLBAR_AddBitmap (HWND hwnd, WPARAM wParam, LPARAM lParam)
SendMessageA
(
hwnd
,
TB_SETBUTTONSIZE
,
0
,
MAKELPARAM
((
WORD
)
22
,
(
WORD
)
22
));
}
TOOLBAR_CalcToolbar
(
hwnd
);
}
else
{
...
...
@@ -1336,6 +1334,8 @@ TOOLBAR_AddBitmap (HWND hwnd, WPARAM wParam, LPARAM lParam)
infoPtr
->
nNumBitmaps
+=
nButtons
;
}
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
return
nIndex
;
}
...
...
@@ -1394,8 +1394,6 @@ TOOLBAR_AddButtonsA (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
}
TOOLBAR_CalcToolbar
(
hwnd
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
return
TRUE
;
...
...
@@ -1456,8 +1454,6 @@ TOOLBAR_AddButtonsW (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
}
TOOLBAR_CalcToolbar
(
hwnd
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
return
TRUE
;
...
...
@@ -1674,7 +1670,6 @@ TOOLBAR_AutoSize (HWND hwnd)
}
else
{
infoPtr
->
nWidth
=
parent_rect
.
right
-
parent_rect
.
left
;
TOOLBAR_CalcToolbar
(
hwnd
);
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
cy
=
infoPtr
->
nHeight
;
cx
=
infoPtr
->
nWidth
;
...
...
@@ -1904,8 +1899,6 @@ TOOLBAR_DeleteButton (HWND hwnd, WPARAM wParam, LPARAM lParam)
COMCTL32_Free
(
oldButtons
);
}
TOOLBAR_CalcToolbar
(
hwnd
);
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
return
TRUE
;
...
...
@@ -2397,8 +2390,6 @@ TOOLBAR_HideButton (HWND hwnd, WPARAM wParam, LPARAM lParam)
else
btnPtr
->
fsState
|=
TBSTATE_HIDDEN
;
TOOLBAR_CalcToolbar
(
hwnd
);
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
return
TRUE
;
...
...
@@ -2519,8 +2510,6 @@ TOOLBAR_InsertButtonA (HWND hwnd, WPARAM wParam, LPARAM lParam)
COMCTL32_Free
(
oldButtons
);
TOOLBAR_CalcToolbar
(
hwnd
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
return
TRUE
;
...
...
@@ -2585,8 +2574,6 @@ TOOLBAR_InsertButtonW (HWND hwnd, WPARAM wParam, LPARAM lParam)
COMCTL32_Free
(
oldButtons
);
TOOLBAR_CalcToolbar
(
hwnd
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
return
TRUE
;
...
...
@@ -3084,7 +3071,6 @@ TOOLBAR_SetIndent (HWND hwnd, WPARAM wParam, LPARAM lParam)
if
(
infoPtr
->
nIndent
!=
(
INT
)
wParam
)
{
infoPtr
->
nIndent
=
(
INT
)
wParam
;
TOOLBAR_CalcToolbar
(
hwnd
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
}
...
...
@@ -3158,9 +3144,6 @@ TOOLBAR_SetRows (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
infoPtr
->
nRows
=
LOWORD
(
wParam
);
/* recalculate toolbar */
TOOLBAR_CalcToolbar
(
hwnd
);
/* repaint toolbar */
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
}
...
...
@@ -3327,9 +3310,6 @@ TOOLBAR_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
(
WPARAM
)
nmttc
.
hdr
.
idFrom
,
(
LPARAM
)
&
nmttc
);
}
}
TOOLBAR_CalcToolbar
(
hwnd
);
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment