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
052144fd
Commit
052144fd
authored
Mar 19, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure the rebar size is above a minimum.
parent
943a71e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
rebar.c
dlls/comctl32/rebar.c
+8
-0
No files found.
dlls/comctl32/rebar.c
View file @
052144fd
...
...
@@ -299,6 +299,10 @@ typedef struct
/* either top or bottom */
#define REBAR_DIVIDER 2
/* minimium vertical height of a normal bar */
/* or minimum width of a CCS_VERT bar - from experiment on Win2k */
#define REBAR_MINSIZE 23
/* This is the increment that is used over the band height */
#define REBARSPACE(a) ((a->fStyle & RBBS_CHILDEDGE) ? 2*REBAR_DIVIDER : 0)
...
...
@@ -1917,6 +1921,8 @@ REBAR_Layout (REBAR_INFO *infoPtr, LPRECT lpRect, BOOL notify, BOOL resetclient)
y
=
clientcy
;
}
if
(
infoPtr
->
dwStyle
&
CCS_VERT
)
{
if
(
x
<
REBAR_MINSIZE
)
x
=
REBAR_MINSIZE
;
infoPtr
->
calcSize
.
cx
=
x
;
infoPtr
->
calcSize
.
cy
=
clientcy
;
TRACE
(
"vert, notify=%d, x=%d, origheight=%d
\n
"
,
...
...
@@ -1924,6 +1930,8 @@ REBAR_Layout (REBAR_INFO *infoPtr, LPRECT lpRect, BOOL notify, BOOL resetclient)
if
(
notify
&&
(
x
!=
origheight
))
infoPtr
->
fStatus
|=
NTF_HGHTCHG
;
}
else
{
if
(
y
<
REBAR_MINSIZE
)
y
=
REBAR_MINSIZE
;
infoPtr
->
calcSize
.
cx
=
clientcx
;
infoPtr
->
calcSize
.
cy
=
y
;
TRACE
(
"horz, notify=%d, y=%d, origheight=%d
\n
"
,
...
...
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