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
7ff2a684
Commit
7ff2a684
authored
Jan 10, 2006
by
Michael Kaufmann
Committed by
Alexandre Julliard
Jan 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Improve the ownerdraw support of the static control.
parent
37c68b47
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
static.c
dlls/user/static.c
+5
-1
No files found.
dlls/user/static.c
View file @
7ff2a684
...
...
@@ -480,20 +480,24 @@ static LRESULT WINAPI StaticWndProcW( HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
static
void
STATIC_PaintOwnerDrawfn
(
HWND
hwnd
,
HDC
hdc
,
DWORD
style
)
{
DRAWITEMSTRUCT
dis
;
HFONT
font
,
oldFont
=
NULL
;
UINT
id
=
(
UINT
)
GetWindowLongPtrW
(
hwnd
,
GWLP_ID
);
dis
.
CtlType
=
ODT_STATIC
;
dis
.
CtlID
=
id
;
dis
.
itemID
=
0
;
dis
.
itemAction
=
ODA_DRAWENTIRE
;
dis
.
itemState
=
0
;
dis
.
itemState
=
IsWindowEnabled
(
hwnd
)
?
0
:
ODS_DISABLED
;
dis
.
hwndItem
=
hwnd
;
dis
.
hDC
=
hdc
;
dis
.
itemData
=
0
;
GetClientRect
(
hwnd
,
&
dis
.
rcItem
);
font
=
(
HFONT
)
GetWindowLongPtrW
(
hwnd
,
HFONT_GWL_OFFSET
);
if
(
font
)
oldFont
=
SelectObject
(
hdc
,
font
);
SendMessageW
(
GetParent
(
hwnd
),
WM_CTLCOLORSTATIC
,
(
WPARAM
)
hdc
,
(
LPARAM
)
hwnd
);
SendMessageW
(
GetParent
(
hwnd
),
WM_DRAWITEM
,
id
,
(
LPARAM
)
&
dis
);
if
(
font
)
SelectObject
(
hdc
,
oldFont
);
}
static
void
STATIC_PaintTextfn
(
HWND
hwnd
,
HDC
hdc
,
DWORD
style
)
...
...
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