2 * Copyright 2005 Dmitry Timoshkov
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #include "wine/test.h"
25 static void test_create_tooltip(void)
28 DWORD style, exp_style;
30 parent = CreateWindowEx(0, "static", NULL, WS_POPUP,
35 hwnd = CreateWindowEx(0, TOOLTIPS_CLASS, NULL, 0x7fffffff | WS_POPUP,
37 parent, NULL, NULL, 0);
40 style = GetWindowLong(hwnd, GWL_STYLE);
41 trace("style = %08x\n", style);
42 exp_style = 0x7fffffff | WS_POPUP;
43 exp_style &= ~(WS_CHILD | WS_MAXIMIZE | WS_BORDER | WS_DLGFRAME);
44 ok(style == exp_style,"wrong style %08x/%08x\n", style, exp_style);
48 hwnd = CreateWindowEx(0, TOOLTIPS_CLASS, NULL, 0,
50 parent, NULL, NULL, 0);
53 style = GetWindowLong(hwnd, GWL_STYLE);
54 trace("style = %08x\n", style);
55 ok(style == (WS_POPUP | WS_CLIPSIBLINGS | WS_BORDER),
56 "wrong style %08x\n", style);
60 DestroyWindow(parent);
67 test_create_tooltip();