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
81cf09c6
Commit
81cf09c6
authored
May 05, 2007
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
May 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: treeview: Treeviews shouldn't be sending NM_TOOLTIPSCREATED (with testcase).
parent
61a86024
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
treeview.c
dlls/comctl32/tests/treeview.c
+9
-1
treeview.c
dlls/comctl32/treeview.c
+3
-1
No files found.
dlls/comctl32/tests/treeview.c
View file @
81cf09c6
...
...
@@ -169,6 +169,8 @@ static const struct message TestGetSetTextColorSeq[] = {
};
static
const
struct
message
TestGetSetToolTipsSeq
[]
=
{
{
WM_COMMAND
,
sent
|
wparam
,
0x02000000
},
{
WM_PARENTNOTIFY
,
sent
|
wparam
|
defwinproc
,
0x00020002
},
{
TVM_SETTOOLTIPS
,
sent
|
wparam
|
lparam
,
0x00000000
,
0x00000000
},
{
TVM_GETTOOLTIPS
,
sent
|
wparam
|
lparam
,
0x00000000
,
0x00000000
},
{
0
}
...
...
@@ -470,6 +472,11 @@ static void TestGetSetTextColor(void)
static
void
TestGetSetToolTips
(
void
)
{
HWND
hwndLastToolTip
=
NULL
;
HWND
hPopupTreeView
;
/* show even WS_POPUP treeview don't send NM_TOOLTIPSCREATED */
hPopupTreeView
=
CreateWindow
(
WC_TREEVIEW
,
NULL
,
WS_POPUP
|
WS_VISIBLE
,
0
,
0
,
100
,
100
,
hMainWnd
,
NULL
,
NULL
,
NULL
);
DestroyWindow
(
hPopupTreeView
);
/* Testing setting a NULL ToolTip */
SendMessage
(
hTree
,
TVM_SETTOOLTIPS
,
0
,
0
);
...
...
@@ -552,7 +559,7 @@ static void TestGetSet(void)
flush_sequences
(
MsgSequences
,
NUM_MSG_SEQUENCES
);
TestGetSetToolTips
();
ok_sequence
(
MsgSequences
,
LISTVIEW_SEQ_INDEX
,
TestGetSetToolTipsSeq
,
"TestGetSetToolTips"
,
FALS
E
);
"TestGetSetToolTips"
,
TRU
E
);
/* TVM_GETUNICODEFORMAT and TVM_SETUNICODEFORMAT */
flush_sequences
(
MsgSequences
,
NUM_MSG_SEQUENCES
);
...
...
@@ -614,6 +621,7 @@ static LRESULT CALLBACK MyWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPa
{
NMHDR
*
pHdr
=
(
NMHDR
*
)
lParam
;
ok
(
pHdr
->
code
!=
NM_FIRST
-
19
,
"Treeview should not send NM_TOOLTIPSCREATED
\n
"
);
if
(
pHdr
->
idFrom
==
100
)
{
NMTREEVIEWA
*
pTreeView
=
(
LPNMTREEVIEWA
)
lParam
;
switch
(
pHdr
->
code
)
{
...
...
dlls/comctl32/treeview.c
View file @
81cf09c6
...
...
@@ -4967,7 +4967,9 @@ TREEVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
TREEVIEW_NotifyFormat
(
infoPtr
,
infoPtr
->
hwndNotify
,
NF_REQUERY
);
if
(
!
(
infoPtr
->
dwStyle
&
TVS_NOTOOLTIPS
))
infoPtr
->
hwndToolTip
=
COMCTL32_CreateToolTip
(
hwnd
);
infoPtr
->
hwndToolTip
=
CreateWindowExW
(
0
,
TOOLTIPS_CLASSW
,
NULL
,
WS_POPUP
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
hwnd
,
0
,
0
,
0
);
if
(
infoPtr
->
dwStyle
&
TVS_CHECKBOXES
)
initialize_checkboxes
(
infoPtr
);
...
...
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