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
fc4b08d5
Commit
fc4b08d5
authored
Sep 12, 2005
by
Frank Richter
Committed by
Alexandre Julliard
Sep 12, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unregister theming subclasses at comctl32 shutdown; should fix
reported re-registration errors.
parent
fecc5f21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
comctl32.h
dlls/comctl32/comctl32.h
+1
-0
commctrl.c
dlls/comctl32/commctrl.c
+3
-0
theming.c
dlls/comctl32/theming.c
+14
-0
No files found.
dlls/comctl32/comctl32.h
View file @
fc4b08d5
...
...
@@ -250,6 +250,7 @@ static inline void MONTHCAL_CopyTime(const SYSTEMTIME *from, SYSTEMTIME *to)
}
extern
void
THEMING_Initialize
(
void
);
extern
void
THEMING_Uninitialize
(
void
);
extern
LRESULT
THEMING_CallOriginalClass
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
extern
void
THEMING_SetSubclassData
(
HWND
,
ULONG_PTR
);
...
...
dlls/comctl32/commctrl.c
View file @
fc4b08d5
...
...
@@ -150,6 +150,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
break
;
case
DLL_PROCESS_DETACH
:
/* clean up subclassing */
THEMING_Uninitialize
();
/* unregister all common control classes */
ANIMATE_Unregister
();
COMBOEX_Unregister
();
...
...
dlls/comctl32/theming.c
View file @
fc4b08d5
...
...
@@ -147,6 +147,20 @@ void THEMING_Initialize (void)
}
/***********************************************************************
* THEMING_Uninitialize
*
* Unregister shadow classes for standard controls.
*/
void
THEMING_Uninitialize
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
NUM_SUBCLASSES
;
i
++
)
{
UnregisterClassW
(
subclasses
[
i
].
className
,
NULL
);
}
}
/***********************************************************************
* THEMING_CallOriginalClass
*
* Determines the original window proc and calls it.
...
...
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