Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
af6fb471
Commit
af6fb471
authored
Jul 20, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix positioning of toolbars that have the WS_BORDER style.
parent
811cdfaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
toolbar.c
dlls/comctl32/toolbar.c
+5
-6
No files found.
dlls/comctl32/toolbar.c
View file @
af6fb471
...
...
@@ -3028,7 +3028,7 @@ TOOLBAR_AutoSize (TOOLBAR_INFO *infoPtr)
if
(
!
(
infoPtr
->
dwStyle
&
CCS_NORESIZE
))
{
RECT
window_rect
;
UINT
uPosFlags
=
SWP_NOZORDER
;
UINT
uPosFlags
=
SWP_NOZORDER
|
SWP_NOACTIVATE
;
if
((
infoPtr
->
dwStyle
&
CCS_BOTTOM
)
==
CCS_NOMOVEY
)
{
...
...
@@ -3050,9 +3050,8 @@ TOOLBAR_AutoSize (TOOLBAR_INFO *infoPtr)
if
(
infoPtr
->
dwStyle
&
WS_BORDER
)
{
x
=
y
=
1
;
/* FIXME: this looks wrong */
cy
+=
GetSystemMetrics
(
SM_CYEDGE
);
cx
+=
GetSystemMetrics
(
SM_CXEDGE
);
cy
+=
2
*
GetSystemMetrics
(
SM_CXBORDER
);
cx
+=
2
*
GetSystemMetrics
(
SM_CYBORDER
);
}
SetWindowPos
(
infoPtr
->
hwndSelf
,
NULL
,
x
,
y
,
cx
,
cy
,
uPosFlags
);
...
...
@@ -4842,7 +4841,7 @@ TOOLBAR_SetRows (TOOLBAR_INFO *infoPtr, WPARAM wParam, LPRECT lprc)
SetWindowPos
(
infoPtr
->
hwndSelf
,
NULL
,
0
,
0
,
infoPtr
->
rcBound
.
right
-
infoPtr
->
rcBound
.
left
,
infoPtr
->
rcBound
.
bottom
-
infoPtr
->
rcBound
.
top
,
SWP_NOMOVE
);
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
}
/* repaint toolbar */
...
...
@@ -6007,7 +6006,7 @@ TOOLBAR_NCPaint (HWND hwnd, WPARAM wParam, LPARAM lParam)
GetWindowRect
(
hwnd
,
&
rcWindow
);
OffsetRect
(
&
rcWindow
,
-
rcWindow
.
left
,
-
rcWindow
.
top
);
if
(
dwStyle
&
WS_BORDER
)
OffsetRect
(
&
rcWindow
,
1
,
1
);
InflateRect
(
&
rcWindow
,
-
1
,
-
1
);
DrawEdge
(
hdc
,
&
rcWindow
,
EDGE_ETCHED
,
BF_TOP
);
}
...
...
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