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
11d35ef8
Commit
11d35ef8
authored
Aug 08, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Get rid of two macros.
parent
e6d9f824
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
toolbar.c
dlls/comctl32/toolbar.c
+6
-4
No files found.
dlls/comctl32/toolbar.c
View file @
11d35ef8
...
...
@@ -217,9 +217,6 @@ typedef enum
#define TOOLBAR_NOWHERE (-1)
#define TOOLBAR_HasText(x, y) (TOOLBAR_GetText(x, y) ? TRUE : FALSE)
#define TOOLBAR_HasDropDownArrows(exStyle) ((exStyle & TBSTYLE_EX_DRAWDDARROWS) ? TRUE : FALSE)
/* Used to find undocumented extended styles */
#define TBSTYLE_EX_ALL (TBSTYLE_EX_DRAWDDARROWS | \
TBSTYLE_EX_UNDOC1 | \
...
...
@@ -258,6 +255,11 @@ static inline int default_top_margin(const TOOLBAR_INFO *infoPtr)
return
(
infoPtr
->
dwStyle
&
TBSTYLE_FLAT
?
0
:
TOP_BORDER
);
}
static
inline
BOOL
TOOLBAR_HasDropDownArrows
(
DWORD
exStyle
)
{
return
(
exStyle
&
TBSTYLE_EX_DRAWDDARROWS
)
!=
0
;
}
static
LPWSTR
TOOLBAR_GetText
(
const
TOOLBAR_INFO
*
infoPtr
,
const
TBUTTON_INFO
*
btnPtr
)
{
...
...
@@ -1247,7 +1249,7 @@ TOOLBAR_CalcStrings (const TOOLBAR_INFO *infoPtr, LPSIZE lpSize)
btnPtr
=
infoPtr
->
buttons
;
for
(
i
=
0
;
i
<
infoPtr
->
nNumButtons
;
i
++
,
btnPtr
++
)
{
if
(
TOOLBAR_
Has
Text
(
infoPtr
,
btnPtr
))
if
(
TOOLBAR_
Get
Text
(
infoPtr
,
btnPtr
))
{
TOOLBAR_MeasureString
(
infoPtr
,
btnPtr
,
hdc
,
&
sz
);
if
(
sz
.
cx
>
lpSize
->
cx
)
...
...
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