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
f15abf08
Commit
f15abf08
authored
Dec 19, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add a test for the initial tooltip window style settings,
make it pass under Wine.
parent
ba76275e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
1 deletion
+71
-1
.gitignore
dlls/comctl32/tests/.gitignore
+1
-0
Makefile.in
dlls/comctl32/tests/Makefile.in
+1
-0
tooltips.c
dlls/comctl32/tests/tooltips.c
+68
-0
tooltips.c
dlls/comctl32/tooltips.c
+1
-1
No files found.
dlls/comctl32/tests/.gitignore
View file @
f15abf08
...
...
@@ -9,5 +9,6 @@ subclass.ok
tab.ok
testlist.c
toolbar.ok
tooltips.ok
treeview.ok
updown.ok
dlls/comctl32/tests/Makefile.in
View file @
f15abf08
...
...
@@ -15,6 +15,7 @@ CTESTS = \
subclass.c
\
tab.c
\
toolbar.c
\
tooltips.c
\
treeview.c
\
updown.c
...
...
dlls/comctl32/tests/tooltips.c
0 → 100644
View file @
f15abf08
/*
* Copyright 2005 Dmitry Timoshkov
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <assert.h>
#include <windows.h>
#include <commctrl.h>
#include "wine/test.h"
static
void
test_create_tooltip
(
void
)
{
HWND
parent
,
hwnd
;
DWORD
style
,
exp_style
;
parent
=
CreateWindowEx
(
0
,
"static"
,
NULL
,
WS_POPUP
,
0
,
0
,
0
,
0
,
NULL
,
NULL
,
NULL
,
0
);
assert
(
parent
);
hwnd
=
CreateWindowEx
(
0
,
TOOLTIPS_CLASS
,
NULL
,
0x7fffffff
|
WS_POPUP
,
10
,
10
,
300
,
100
,
parent
,
NULL
,
NULL
,
0
);
assert
(
hwnd
);
style
=
GetWindowLong
(
hwnd
,
GWL_STYLE
);
trace
(
"style = %08lx
\n
"
,
style
);
exp_style
=
0x7fffffff
|
WS_POPUP
;
exp_style
&=
~
(
WS_CHILD
|
WS_MAXIMIZE
|
WS_BORDER
|
WS_DLGFRAME
);
ok
(
style
==
exp_style
,
"wrong style %08lx/%08lx
\n
"
,
style
,
exp_style
);
DestroyWindow
(
hwnd
);
hwnd
=
CreateWindowEx
(
0
,
TOOLTIPS_CLASS
,
NULL
,
0
,
10
,
10
,
300
,
100
,
parent
,
NULL
,
NULL
,
0
);
assert
(
hwnd
);
style
=
GetWindowLong
(
hwnd
,
GWL_STYLE
);
trace
(
"style = %08lx
\n
"
,
style
);
ok
(
style
==
(
WS_POPUP
|
WS_CLIPSIBLINGS
|
WS_BORDER
),
"wrong style %08lx
\n
"
,
style
);
DestroyWindow
(
hwnd
);
DestroyWindow
(
parent
);
}
START_TEST
(
tooltips
)
{
InitCommonControls
();
test_create_tooltip
();
}
dlls/comctl32/tooltips.c
View file @
f15abf08
...
...
@@ -2400,7 +2400,7 @@ TOOLTIPS_NCCreate (HWND hwnd, WPARAM wParam, LPARAM lParam)
DWORD
dwStyle
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
DWORD
dwExStyle
=
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
);
dwStyle
&=
0x0000FFFF
;
dwStyle
&=
~
(
WS_CHILD
|
/*WS_MAXIMIZE |*/
WS_BORDER
|
WS_DLGFRAME
)
;
dwStyle
|=
(
WS_POPUP
|
WS_BORDER
|
WS_CLIPSIBLINGS
);
/* WS_BORDER only draws a border round the window rect, not the
...
...
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