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
3f91e752
Commit
3f91e752
authored
Dec 02, 2006
by
Clinton Stimpson
Committed by
Alexandre Julliard
Dec 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Destroy header information on WM_NCDESTROY instead of WM_DESTROY.
parent
b4f0adbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
header.c
dlls/comctl32/header.c
+12
-4
No files found.
dlls/comctl32/header.c
View file @
3f91e752
...
...
@@ -1502,10 +1502,17 @@ HEADER_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
HEADER_Destroy
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
HTHEME
theme
=
GetWindowTheme
(
hwnd
);
CloseThemeData
(
theme
);
return
0
;
}
static
LRESULT
HEADER_NCDestroy
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
HEADER_INFO
*
infoPtr
=
HEADER_GetInfoPtr
(
hwnd
);
HEADER_ITEM
*
lpItem
;
INT
nItem
;
HTHEME
theme
;
if
(
infoPtr
->
items
)
{
lpItem
=
infoPtr
->
items
;
...
...
@@ -1519,13 +1526,11 @@ HEADER_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
Free
(
infoPtr
->
order
);
if
(
infoPtr
->
himl
)
ImageList_Destroy
(
infoPtr
->
himl
);
ImageList_Destroy
(
infoPtr
->
himl
);
SetWindowLongPtrW
(
hwnd
,
0
,
0
);
Free
(
infoPtr
);
theme
=
GetWindowTheme
(
hwnd
);
CloseThemeData
(
theme
);
return
0
;
}
...
...
@@ -2078,6 +2083,9 @@ HEADER_WindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
case
WM_DESTROY
:
return
HEADER_Destroy
(
hwnd
,
wParam
,
lParam
);
case
WM_NCDESTROY
:
return
HEADER_NCDestroy
(
hwnd
,
wParam
,
lParam
);
case
WM_ERASEBKGND
:
return
1
;
...
...
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