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
4946623d
Commit
4946623d
authored
Aug 25, 2005
by
Frank Richter
Committed by
Alexandre Julliard
Aug 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add WM_CTLCOLORSTATIC handler to dialog theming subclass so static
text can appear transparent (for e.g. tab pages which commonly have a "fancy" background).
parent
50a9b782
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
theme_dialog.c
dlls/comctl32/theme_dialog.c
+33
-0
No files found.
dlls/comctl32/theme_dialog.c
View file @
4946623d
...
...
@@ -101,6 +101,39 @@ LRESULT CALLBACK THEMING_DialogSubclassProc (HWND hWnd, UINT msg,
return
1
;
}
case
WM_CTLCOLORSTATIC
:
if
(
!
doTheming
)
return
THEMING_CallOriginalClass
(
hWnd
,
msg
,
wParam
,
lParam
);
{
DLGPROC
dlgp
=
(
DLGPROC
)
GetWindowLongPtrW
(
hWnd
,
DWLP_DLGPROC
);
LRESULT
result
=
(
LRESULT
)
dlgp
(
hWnd
,
msg
,
wParam
,
lParam
);
if
(
!
result
)
{
/* Override defaults with more suitable values when themed */
HDC
controlDC
=
(
HDC
)
wParam
;
HWND
controlWnd
=
(
HWND
)
lParam
;
WCHAR
controlClass
[
32
];
RECT
rc
;
GetClassNameW
(
controlWnd
,
controlClass
,
sizeof
(
controlClass
)
/
sizeof
(
controlClass
[
0
]));
if
(
lstrcmpiW
(
controlClass
,
WC_STATICW
)
==
0
)
{
/* Static control - draw parent background and set text to
* transparent, so it looks right on tab pages. */
GetClientRect
(
controlWnd
,
&
rc
);
DrawThemeParentBackground
(
controlWnd
,
controlDC
,
&
rc
);
SetBkMode
(
controlDC
,
TRANSPARENT
);
/* Return NULL brush since we painted the BG already */
return
(
LRESULT
)
GetStockObject
(
NULL_BRUSH
);
}
else
return
THEMING_CallOriginalClass
(
hWnd
,
msg
,
wParam
,
lParam
);
}
return
result
;
}
default:
/* Call old proc */
return
THEMING_CallOriginalClass
(
hWnd
,
msg
,
wParam
,
lParam
);
...
...
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