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
6b616f3e
Commit
6b616f3e
authored
Mar 15, 2013
by
Qian Hong
Committed by
Alexandre Julliard
Mar 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Don't forward AtlAxWinInit to atl100.
parent
cd321cbe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
1 deletion
+70
-1
atl.spec
dlls/atl/atl.spec
+1
-1
atl_main.c
dlls/atl/atl_main.c
+48
-0
atl_ax.c
dlls/atl/tests/atl_ax.c
+21
-0
No files found.
dlls/atl/atl.spec
View file @
6b616f3e
...
...
@@ -33,7 +33,7 @@
39 stdcall AtlAxCreateControl(ptr ptr ptr ptr) atl100.AtlAxCreateControl
40 stdcall AtlAxCreateControlEx(ptr ptr ptr ptr ptr ptr ptr) atl100.AtlAxCreateControlEx
41 stdcall AtlAxAttachControl(ptr ptr ptr) atl100.AtlAxAttachControl
42 stdcall AtlAxWinInit()
atl100.AtlAxWinInit
42 stdcall AtlAxWinInit()
43 stdcall AtlModuleAddCreateWndData(ptr ptr ptr)
44 stdcall AtlModuleExtractCreateWndData(ptr)
45 stdcall AtlModuleRegisterWndClassInfoW(ptr ptr ptr)
...
...
dlls/atl/atl_main.c
View file @
6b616f3e
...
...
@@ -584,3 +584,51 @@ DWORD WINAPI AtlGetVersion(void *pReserved)
{
return
_ATL_VER
;
}
/**********************************************************************
* AtlAxWin class window procedure
*/
static
LRESULT
CALLBACK
AtlAxWin_wndproc
(
HWND
hWnd
,
UINT
wMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
wMsg
==
WM_CREATE
)
{
DWORD
len
=
GetWindowTextLengthW
(
hWnd
)
+
1
;
WCHAR
*
ptr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
if
(
!
ptr
)
return
1
;
GetWindowTextW
(
hWnd
,
ptr
,
len
);
AtlAxCreateControlEx
(
ptr
,
hWnd
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
return
0
;
}
return
DefWindowProcW
(
hWnd
,
wMsg
,
wParam
,
lParam
);
}
BOOL
WINAPI
AtlAxWinInit
(
void
)
{
WNDCLASSEXW
wcex
;
const
WCHAR
AtlAxWin
[]
=
{
'A'
,
't'
,
'l'
,
'A'
,
'x'
,
'W'
,
'i'
,
'n'
,
0
};
FIXME
(
"semi-stub
\n
"
);
if
(
FAILED
(
OleInitialize
(
NULL
)
)
)
return
FALSE
;
wcex
.
cbSize
=
sizeof
(
wcex
);
wcex
.
style
=
CS_GLOBALCLASS
;
wcex
.
cbClsExtra
=
0
;
wcex
.
cbWndExtra
=
0
;
wcex
.
hInstance
=
GetModuleHandleW
(
NULL
);
wcex
.
hIcon
=
NULL
;
wcex
.
hCursor
=
NULL
;
wcex
.
hbrBackground
=
NULL
;
wcex
.
lpszMenuName
=
NULL
;
wcex
.
hIconSm
=
0
;
wcex
.
lpfnWndProc
=
AtlAxWin_wndproc
;
wcex
.
lpszClassName
=
AtlAxWin
;
if
(
!
RegisterClassExW
(
&
wcex
)
)
return
FALSE
;
return
TRUE
;
}
dlls/atl/tests/atl_ax.c
View file @
6b616f3e
...
...
@@ -35,6 +35,7 @@
#include <olectl.h>
#include <ocidl.h>
#include <exdisp.h>
#include <atlbase.h>
static
HRESULT
(
WINAPI
*
pAtlAxAttachControl
)(
IUnknown
*
,
HWND
,
IUnknown
**
);
...
...
@@ -114,6 +115,24 @@ static void test_AtlAxAttachControl(void)
DestroyWindow
(
hwnd
);
}
static
void
test_ax_win
(
void
)
{
BOOL
ret
;
WNDCLASSEXW
wcex
;
static
const
WCHAR
AtlAxWin
[]
=
{
'A'
,
't'
,
'l'
,
'A'
,
'x'
,
'W'
,
'i'
,
'n'
,
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
,
AtlAxWin
,
&
wcex
);
ok
(
ret
,
"AtlAxWin has not registered
\n
"
);
ok
(
wcex
.
style
==
CS_GLOBALCLASS
,
"wcex.style %08x
\n
"
,
wcex
.
style
);
}
START_TEST
(
atl_ax
)
{
init_function_pointers
();
...
...
@@ -128,5 +147,7 @@ START_TEST(atl_ax)
else
win_skip
(
"AtlAxAttachControl is not available
\n
"
);
test_ax_win
();
CoUninitialize
();
}
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