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
56121b71
Commit
56121b71
authored
Nov 05, 2003
by
Rein Klazes
Committed by
Alexandre Julliard
Nov 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly place a toolbar with CCS_BOTTOM style at the bottom, not the
top.
parent
05d00f06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
toolbar.c
dlls/comctl32/toolbar.c
+16
-9
No files found.
dlls/comctl32/toolbar.c
View file @
56121b71
...
...
@@ -2732,11 +2732,15 @@ TOOLBAR_AutoSize (HWND hwnd)
cy
=
infoPtr
->
nHeight
;
cx
=
infoPtr
->
nWidth
;
if
(
dwStyle
&
CCS_NOMOVEY
)
{
if
(
(
dwStyle
&
CCS_BOTTOM
)
==
CCS_NOMOVEY
)
{
GetWindowRect
(
hwnd
,
&
window_rect
);
ScreenToClient
(
parent
,
(
LPPOINT
)
&
window_rect
.
left
);
y
=
window_rect
.
top
;
}
if
((
dwStyle
&
CCS_BOTTOM
)
==
CCS_BOTTOM
)
{
GetWindowRect
(
hwnd
,
&
window_rect
);
y
=
parent_rect
.
bottom
-
(
window_rect
.
bottom
-
window_rect
.
top
);
}
}
if
(
dwStyle
&
CCS_NOPARENTALIGN
)
...
...
@@ -2753,10 +2757,9 @@ TOOLBAR_AutoSize (HWND hwnd)
}
infoPtr
->
bAutoSize
=
TRUE
;
SetWindowPos
(
hwnd
,
HWND_TOP
,
parent_rect
.
left
-
x
,
parent_rect
.
top
-
y
,
cx
,
cy
,
uPosFlags
);
/* The following line makes sure that the infoPtr->bAutoSize is turned off after
* the setwindowpos calls */
SetWindowPos
(
hwnd
,
HWND_TOP
,
x
,
y
,
cx
,
cy
,
uPosFlags
);
/* The following line makes sure that the infoPtr->bAutoSize is turned off
* after the setwindowpos calls */
infoPtr
->
bAutoSize
=
FALSE
;
return
0
;
...
...
@@ -5573,11 +5576,16 @@ TOOLBAR_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
cy
=
infoPtr
->
nHeight
;
cx
=
infoPtr
->
nWidth
;
if
(
dwStyle
&
CCS_NOMOVEY
)
{
if
(
(
dwStyle
&
CCS_BOTTOM
)
==
CCS_NOMOVEY
)
{
GetWindowRect
(
hwnd
,
&
window_rect
);
ScreenToClient
(
parent
,
(
LPPOINT
)
&
window_rect
.
left
);
y
=
window_rect
.
top
;
y
=
window_rect
.
top
;
}
if
((
dwStyle
&
CCS_BOTTOM
)
==
CCS_BOTTOM
)
{
GetWindowRect
(
hwnd
,
&
window_rect
);
y
=
parent_rect
.
bottom
-
(
window_rect
.
bottom
-
window_rect
.
top
);
}
}
if
(
dwStyle
&
CCS_NOPARENTALIGN
)
{
...
...
@@ -5596,8 +5604,7 @@ TOOLBAR_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
cx
+=
GetSystemMetrics
(
SM_CYEDGE
);
}
SetWindowPos
(
hwnd
,
0
,
parent_rect
.
left
-
x
,
parent_rect
.
top
-
y
,
cx
,
cy
,
uPosFlags
|
SWP_NOZORDER
);
SetWindowPos
(
hwnd
,
0
,
x
,
y
,
cx
,
cy
,
uPosFlags
|
SWP_NOZORDER
);
}
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