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
88b64d48
Commit
88b64d48
authored
Mar 30, 2009
by
Igor Tarasov
Committed by
Alexandre Julliard
Mar 31, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: CCS_VERT flips toolbar separators orientation.
parent
94a7cd42
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
toolbar.c
dlls/comctl32/toolbar.c
+9
-10
No files found.
dlls/comctl32/toolbar.c
View file @
88b64d48
...
...
@@ -492,9 +492,9 @@ TOOLBAR_DrawFlatSeparator (const RECT *lpRect, HDC hdc, const TOOLBAR_INFO *info
/***********************************************************************
* TOOLBAR_Draw
DDFlat
Separator
* TOOLBAR_Draw
FlatHorizontal
Separator
*
* This function draws
the separator that was flagged as BTNS_DROPDOWN
.
* This function draws
horizontal separator for toolbars having CCS_VERT style
.
* In this case, the separator is a pixel high line of COLOR_BTNSHADOW,
* followed by a pixel high line of COLOR_BTNHIGHLIGHT. These separators
* are horizontal as opposed to the vertical separators for not dropdown
...
...
@@ -503,7 +503,7 @@ TOOLBAR_DrawFlatSeparator (const RECT *lpRect, HDC hdc, const TOOLBAR_INFO *info
* FIXME: It is possible that the height of each line is really SM_CYBORDER.
*/
static
void
TOOLBAR_Draw
DDFlat
Separator
(
const
RECT
*
lpRect
,
HDC
hdc
,
TOOLBAR_Draw
FlatHorizontal
Separator
(
const
RECT
*
lpRect
,
HDC
hdc
,
const
TOOLBAR_INFO
*
infoPtr
)
{
RECT
myrect
;
...
...
@@ -855,8 +855,8 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc, DWORD dwBaseCustDr
/* empirical tests show that iBitmap can/will be non-zero */
/* when drawing the vertical bar... */
if
((
dwStyle
&
TBSTYLE_FLAT
)
/* && (btnPtr->iBitmap == 0) */
)
{
if
(
btnPtr
->
fsStyle
&
BTNS_DROPDOWN
)
TOOLBAR_DrawDDFlat
Separator
(
&
rc
,
hdc
,
infoPtr
);
if
(
dwStyle
&
CCS_VERT
)
TOOLBAR_DrawFlatHorizontal
Separator
(
&
rc
,
hdc
,
infoPtr
);
else
TOOLBAR_DrawFlatSeparator
(
&
rc
,
hdc
,
infoPtr
);
}
...
...
@@ -1330,10 +1330,9 @@ TOOLBAR_WrapToolbar( HWND hwnd, DWORD dwStyle )
/* it is the actual width of the separator. This is used for */
/* custom controls in toolbars. */
/* */
/* BTNS_DROPDOWN separators are treated as buttons for */
/* width. - GA 8/01 */
/* horizontal separators are treated as buttons for width */
if
((
btnPtr
[
i
].
fsStyle
&
BTNS_SEP
)
&&
!
(
btnPtr
[
i
].
fsStyle
&
BTNS_DROPDOWN
))
!
(
infoPtr
->
dwStyle
&
CCS_VERT
))
cx
=
(
btnPtr
[
i
].
iBitmap
>
0
)
?
btnPtr
[
i
].
iBitmap
:
SEPARATOR_WIDTH
;
else
...
...
@@ -1689,7 +1688,7 @@ TOOLBAR_LayoutToolbar(HWND hwnd)
/* it is the actual width of the separator. This is used for */
/* custom controls in toolbars. */
if
(
btnPtr
->
fsStyle
&
BTNS_SEP
)
{
if
(
btnPtr
->
fsStyle
&
BTNS_DROPDOWN
)
{
if
(
infoPtr
->
dwStyle
&
CCS_VERT
)
{
cy
=
(
btnPtr
->
iBitmap
>
0
)
?
btnPtr
->
iBitmap
:
SEPARATOR_WIDTH
;
cx
=
infoPtr
->
nButtonWidth
;
...
...
@@ -1762,7 +1761,7 @@ TOOLBAR_LayoutToolbar(HWND hwnd)
/* UNDOCUMENTED: If a separator has a non zero bitmap index, */
/* it is the actual width of the separator. This is used for */
/* custom controls in toolbars. */
if
(
!
(
btnPtr
->
fsStyle
&
BTNS_DROPDOWN
))
if
(
!
(
infoPtr
->
dwStyle
&
CCS_VERT
))
y
+=
cy
+
(
(
btnPtr
->
iBitmap
>
0
)
?
btnPtr
->
iBitmap
:
SEPARATOR_WIDTH
)
*
2
/
3
;
else
...
...
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