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
6ecdc5bb
Commit
6ecdc5bb
authored
Nov 11, 2006
by
Andrey Turkin
Committed by
Alexandre Julliard
Nov 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: AtlAxGetHost and AtlAxGetControl implementation.
parent
26e6c13c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
2 deletions
+46
-2
atl.spec
dlls/atl/atl.spec
+2
-2
atl_ax.c
dlls/atl/atl_ax.c
+44
-0
No files found.
dlls/atl/atl.spec
View file @
6ecdc5bb
...
...
@@ -38,8 +38,8 @@
44 stdcall AtlModuleExtractCreateWndData(ptr)
45 stdcall AtlModuleRegisterWndClassInfoW(ptr ptr ptr)
46 stub AtlModuleRegisterWndClassInfoA
47 st
ub AtlAxGetControl
48 st
ub AtlAxGetHost
47 st
dcall AtlAxGetControl(long ptr)
48 st
dcall AtlAxGetHost(long ptr)
49 stub AtlRegisterClassCategoriesHelper
50 stub AtlIPersistStreamInit_Load
51 stub AtlIPersistStreamInit_Save
...
...
dlls/atl/atl_ax.c
View file @
6ecdc5bb
...
...
@@ -1261,3 +1261,47 @@ HWND WINAPI AtlAxCreateDialogW(HINSTANCE hInst, LPCWSTR name, HWND owner, DLGPRO
FreeResource
(
hrsrc
);
return
res
;
}
/***********************************************************************
* AtlAxGetHost [ATL.@]
*
*/
HRESULT
WINAPI
AtlAxGetHost
(
HWND
hWnd
,
IUnknown
**
pUnk
)
{
IOCS
*
This
;
TRACE
(
"(%p, %p)
\n
"
,
hWnd
,
pUnk
);
*
pUnk
=
NULL
;
This
=
(
IOCS
*
)
GetWindowLongPtrW
(
hWnd
,
GWLP_USERDATA
);
if
(
!
This
)
{
WARN
(
"No container attached to %p
\n
"
,
hWnd
);
return
E_FAIL
;
}
return
IOCS_QueryInterface
(
This
,
&
IID_IUnknown
,
(
void
**
)
pUnk
);
}
/***********************************************************************
* AtlAxGetControl [ATL.@]
*
*/
HRESULT
WINAPI
AtlAxGetControl
(
HWND
hWnd
,
IUnknown
**
pUnk
)
{
IOCS
*
This
;
TRACE
(
"(%p, %p)
\n
"
,
hWnd
,
pUnk
);
*
pUnk
=
NULL
;
This
=
(
IOCS
*
)
GetWindowLongPtrW
(
hWnd
,
GWLP_USERDATA
);
if
(
!
This
||
!
This
->
control
)
{
WARN
(
"No control attached to %p
\n
"
,
hWnd
);
return
E_FAIL
;
}
return
IOleObject_QueryInterface
(
This
->
control
,
&
IID_IUnknown
,
(
void
**
)
pUnk
);
}
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