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
b37adfb4
Commit
b37adfb4
authored
Nov 03, 2003
by
Huw Davies
Committed by
Alexandre Julliard
Nov 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the listview send its notifications to the parent window passed
to it in CREATESTRUCT. Based on a treeview patch by Igor Grahek.
parent
dfdb7cf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
listview.c
dlls/comctl32/listview.c
+7
-6
No files found.
dlls/comctl32/listview.c
View file @
b37adfb4
...
...
@@ -238,6 +238,7 @@ typedef struct tagLISTVIEW_INFO
INT
nSelectionMark
;
INT
nHotItem
;
SHORT
notifyFormat
;
HWND
hwndNotify
;
RECT
rcList
;
/* This rectangle is really the window
* client rectangle possibly reduced by the
* horizontal scroll bar and/or header - see
...
...
@@ -721,7 +722,7 @@ static LRESULT notify_hdr(LISTVIEW_INFO *infoPtr, INT code, LPNMHDR pnmh)
pnmh
->
hwndFrom
=
infoPtr
->
hwndSelf
;
pnmh
->
idFrom
=
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_ID
);
pnmh
->
code
=
code
;
result
=
SendMessageW
(
GetParent
(
infoPtr
->
hwndSelf
)
,
WM_NOTIFY
,
result
=
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFY
,
(
WPARAM
)
pnmh
->
idFrom
,
(
LPARAM
)
pnmh
);
TRACE
(
" <= %ld
\n
"
,
result
);
...
...
@@ -1738,7 +1739,7 @@ static void LISTVIEW_ShowFocusRect(LISTVIEW_INFO *infoPtr, BOOL fShow)
LISTVIEW_GetItemBox
(
infoPtr
,
dis
.
itemID
,
&
dis
.
rcItem
);
dis
.
itemData
=
item
.
lParam
;
SendMessageW
(
GetParent
(
infoPtr
->
hwndSelf
)
,
WM_DRAWITEM
,
dis
.
CtlID
,
(
LPARAM
)
&
dis
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_DRAWITEM
,
dis
.
CtlID
,
(
LPARAM
)
&
dis
);
}
else
{
...
...
@@ -3680,7 +3681,6 @@ postpaint:
static
void
LISTVIEW_RefreshOwnerDraw
(
LISTVIEW_INFO
*
infoPtr
,
ITERATOR
*
i
,
HDC
hdc
,
DWORD
cdmode
)
{
UINT
uID
=
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_ID
);
HWND
hwndParent
=
GetParent
(
infoPtr
->
hwndSelf
);
DWORD
cditemmode
=
CDRF_DODEFAULT
;
NMLVCUSTOMDRAW
nmlvcd
;
POINT
Origin
,
Position
;
...
...
@@ -3730,7 +3730,7 @@ static void LISTVIEW_RefreshOwnerDraw(LISTVIEW_INFO *infoPtr, ITERATOR *i, HDC h
if
(
!
(
cditemmode
&
CDRF_SKIPDEFAULT
))
{
prepaint_setup
(
infoPtr
,
hdc
,
&
nmlvcd
);
SendMessageW
(
hwndParent
,
WM_DRAWITEM
,
dis
.
CtlID
,
(
LPARAM
)
&
dis
);
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_DRAWITEM
,
dis
.
CtlID
,
(
LPARAM
)
&
dis
);
}
if
(
cditemmode
&
CDRF_NOTIFYPOSTPAINT
)
...
...
@@ -7179,7 +7179,8 @@ static LRESULT LISTVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
infoPtr
->
hwndSelf
=
hwnd
;
infoPtr
->
dwStyle
=
lpcs
->
style
;
/* determine the type of structures to use */
infoPtr
->
notifyFormat
=
SendMessageW
(
GetParent
(
infoPtr
->
hwndSelf
),
WM_NOTIFYFORMAT
,
infoPtr
->
hwndNotify
=
lpcs
->
hwndParent
;
infoPtr
->
notifyFormat
=
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFYFORMAT
,
(
WPARAM
)
infoPtr
->
hwndSelf
,
(
LPARAM
)
NF_QUERY
);
/* initialize color information */
...
...
@@ -9064,7 +9065,7 @@ static LRESULT LISTVIEW_Command(LISTVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lP
}
default:
return
SendMessageW
(
GetParent
(
infoPtr
->
hwndSelf
)
,
WM_COMMAND
,
wParam
,
lParam
);
return
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_COMMAND
,
wParam
,
lParam
);
}
return
0
;
...
...
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