Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
dd851591
Commit
dd851591
authored
Feb 01, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Make the status control height dpi and theme aware.
parent
3ce650bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
status.c
dlls/comctl32/status.c
+5
-3
No files found.
dlls/comctl32/status.c
View file @
dd851591
...
...
@@ -95,7 +95,6 @@ typedef struct
#define HORZ_BORDER 0
#define VERT_BORDER 2
#define HORZ_GAP 2
#define MIN_PANE_HEIGHT 18
static
const
WCHAR
themeClass
[]
=
{
'S'
,
't'
,
'a'
,
't'
,
'u'
,
's'
,
0
};
...
...
@@ -649,7 +648,9 @@ STATUSBAR_SetIcon (STATUS_INFO *infoPtr, INT nPart, HICON hIcon)
static
BOOL
STATUSBAR_SetMinHeight
(
STATUS_INFO
*
infoPtr
,
INT
height
)
{
infoPtr
->
minHeight
=
max
(
height
,
MIN_PANE_HEIGHT
);
DWORD
ysize
=
GetSystemMetrics
(
SM_CYSIZE
);
if
(
ysize
&
1
)
ysize
--
;
infoPtr
->
minHeight
=
max
(
height
,
ysize
);
infoPtr
->
height
=
STATUSBAR_ComputeHeight
(
infoPtr
);
/* like native, don't resize the control */
return
TRUE
;
...
...
@@ -921,7 +922,8 @@ STATUSBAR_WMCreate (HWND hwnd, const CREATESTRUCTA *lpCreate)
infoPtr
->
horizontalBorder
=
HORZ_BORDER
;
infoPtr
->
verticalBorder
=
VERT_BORDER
;
infoPtr
->
horizontalGap
=
HORZ_GAP
;
infoPtr
->
minHeight
=
MIN_PANE_HEIGHT
;
infoPtr
->
minHeight
=
GetSystemMetrics
(
SM_CYSIZE
);
if
(
infoPtr
->
minHeight
&
1
)
infoPtr
->
minHeight
--
;
STATUSBAR_NotifyFormat
(
infoPtr
,
infoPtr
->
Notify
,
NF_REQUERY
);
...
...
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