68 lines
2.0 KiB
C
68 lines
2.0 KiB
C
|
/*
|
||
|
* Copyright 2013 Qian Hong for CodeWeavers
|
||
|
*
|
||
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||
|
*/
|
||
|
|
||
|
#include <stdarg.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
#define COBJMACROS
|
||
|
#define CONST_VTABLE
|
||
|
|
||
|
#include <windef.h>
|
||
|
#include <winbase.h>
|
||
|
#include <winuser.h>
|
||
|
|
||
|
#include <atlbase.h>
|
||
|
#include <mshtml.h>
|
||
|
|
||
|
#include <wine/test.h>
|
||
|
|
||
|
static void test_ax_win(void)
|
||
|
{
|
||
|
BOOL ret;
|
||
|
WNDCLASSEXW wcex;
|
||
|
static const WCHAR AtlAxWin80[] = {'A','t','l','A','x','W','i','n','8','0',0};
|
||
|
static const WCHAR AtlAxWinLic80[] = {'A','t','l','A','x','W','i','n','L','i','c','8','0',0};
|
||
|
static HMODULE hinstance = 0;
|
||
|
|
||
|
ret = AtlAxWinInit();
|
||
|
ok(ret, "AtlAxWinInit failed\n");
|
||
|
|
||
|
hinstance = GetModuleHandleA(NULL);
|
||
|
|
||
|
memset(&wcex, 0, sizeof(wcex));
|
||
|
wcex.cbSize = sizeof(wcex);
|
||
|
ret = GetClassInfoExW(hinstance, AtlAxWin80, &wcex);
|
||
|
ok(ret, "AtlAxWin80 has not registered\n");
|
||
|
ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
|
||
|
|
||
|
memset(&wcex, 0, sizeof(wcex));
|
||
|
wcex.cbSize = sizeof(wcex);
|
||
|
ret = GetClassInfoExW(hinstance, AtlAxWinLic80, &wcex);
|
||
|
ok(ret, "AtlAxWinLic80 has not registered\n");
|
||
|
ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
|
||
|
}
|
||
|
|
||
|
START_TEST(atl)
|
||
|
{
|
||
|
CoInitialize(NULL);
|
||
|
|
||
|
test_ax_win();
|
||
|
|
||
|
CoUninitialize();
|
||
|
}
|