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
739b97c2
Commit
739b97c2
authored
May 01, 1999
by
Luc Tourangeau
Committed by
Alexandre Julliard
May 01, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some flickering when inserting or deleting buttons.
parent
eab73f89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
23 deletions
+5
-23
toolbar.c
dlls/comctl32/toolbar.c
+5
-23
No files found.
dlls/comctl32/toolbar.c
View file @
739b97c2
...
...
@@ -719,7 +719,6 @@ TOOLBAR_AddButtonsA (HWND hwnd, WPARAM wParam, LPARAM lParam)
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
LPTBBUTTON
lpTbb
=
(
LPTBBUTTON
)
lParam
;
INT
nOldButtons
,
nNewButtons
,
nAddButtons
,
nCount
;
HDC
hdc
;
TRACE
(
toolbar
,
"adding %d buttons!
\n
"
,
wParam
);
...
...
@@ -770,9 +769,7 @@ TOOLBAR_AddButtonsA (HWND hwnd, WPARAM wParam, LPARAM lParam)
TOOLBAR_CalcToolbar
(
hwnd
);
hdc
=
GetDC
(
hwnd
);
TOOLBAR_Refresh
(
hwnd
,
hdc
);
ReleaseDC
(
hwnd
,
hdc
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
return
TRUE
;
}
...
...
@@ -1127,7 +1124,6 @@ TOOLBAR_DeleteButton (HWND hwnd, WPARAM wParam, LPARAM lParam)
TOOLBAR_CalcToolbar
(
hwnd
);
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
UpdateWindow
(
hwnd
);
return
TRUE
;
}
...
...
@@ -1525,7 +1521,6 @@ TOOLBAR_HideButton (HWND hwnd, WPARAM wParam, LPARAM lParam)
TOOLBAR_CalcToolbar
(
hwnd
);
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
UpdateWindow
(
hwnd
);
return
TRUE
;
}
...
...
@@ -1571,7 +1566,6 @@ TOOLBAR_InsertButtonA (HWND hwnd, WPARAM wParam, LPARAM lParam)
LPTBBUTTON
lpTbb
=
(
LPTBBUTTON
)
lParam
;
INT
nIndex
=
(
INT
)
wParam
;
TBUTTON_INFO
*
oldButtons
;
HDC
hdc
;
if
(
lpTbb
==
NULL
)
return
FALSE
;
...
...
@@ -1625,9 +1619,7 @@ TOOLBAR_InsertButtonA (HWND hwnd, WPARAM wParam, LPARAM lParam)
TOOLBAR_CalcToolbar
(
hwnd
);
hdc
=
GetDC
(
hwnd
);
TOOLBAR_Refresh
(
hwnd
,
hdc
);
ReleaseDC
(
hwnd
,
hdc
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
return
TRUE
;
}
...
...
@@ -1999,15 +1991,12 @@ static LRESULT
TOOLBAR_SetIndent
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
HDC
hdc
;
infoPtr
->
nIndent
=
(
INT
)
wParam
;
TOOLBAR_CalcToolbar
(
hwnd
);
hdc
=
GetDC
(
hwnd
);
TOOLBAR_Refresh
(
hwnd
,
hdc
);
ReleaseDC
(
hwnd
,
hdc
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
return
TRUE
;
}
...
...
@@ -2066,7 +2055,6 @@ TOOLBAR_SetRows (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
LPRECT
lprc
=
(
LPRECT
)
lParam
;
HDC
hdc
;
if
(
LOWORD
(
wParam
)
>
1
)
{
...
...
@@ -2086,9 +2074,7 @@ TOOLBAR_SetRows (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
/* repaint toolbar */
hdc
=
GetDC
(
hwnd
);
TOOLBAR_Refresh
(
hwnd
,
hdc
);
ReleaseDC
(
hwnd
,
hdc
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
return
0
;
}
...
...
@@ -2673,13 +2659,9 @@ TOOLBAR_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
TOOLBAR_StyleChanged
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
HDC
hdc
;
TOOLBAR_AutoSize
(
hwnd
,
wParam
,
lParam
);
hdc
=
GetDC
(
hwnd
);
TOOLBAR_Refresh
(
hwnd
,
hdc
);
ReleaseDC
(
hwnd
,
hdc
);
InvalidateRect
(
hwnd
,
NULL
,
FALSE
);
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