ReactOS  r76032
atl_ax.c File Reference
#include <precomp.h>
#include <ole2.h>
#include <exdisp.h>
#include <shlwapi.h>
#include <wine/atlwin.h>
Include dependency graph for atl_ax.c:

Go to the source code of this file.

Classes

struct  IOCS
 

Macros

#define ATL_NAME_SUFFIX   0
 
#define GET_WORD(x)   (*(const WORD *)(x))
 
#define GET_DWORD(x)   (*(const DWORD *)(x))
 
#define PUT_BLOCK(x, y)   do {if (!advance_array(&output, &allocated, &filled, (x), (y))) return NULL;} while (0)
 
#define PUT_WORD(x)   do {WORD w = (x);PUT_BLOCK(&w, 1);} while(0)
 

Typedefs

typedef struct IOCS IOCS
 

Enumerations

enum  content {
  IsEmpty = 0, IsGUID = 1, IsHTML = 2, IsURL = 3,
  IsUnknown = 4
}
 

Functions

static LRESULT CALLBACK AtlAxWin_wndproc (HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
 
BOOL WINAPI AtlAxWinInit (void)
 
static IOCSimpl_from_IOleClientSite (IOleClientSite *iface)
 
static HRESULT IOCS_Detach (IOCS *This)
 
static HRESULT WINAPI OleClientSite_QueryInterface (IOleClientSite *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI OleClientSite_AddRef (IOleClientSite *iface)
 
static ULONG WINAPI OleClientSite_Release (IOleClientSite *iface)
 
static HRESULT WINAPI OleClientSite_SaveObject (IOleClientSite *iface)
 
static HRESULT WINAPI OleClientSite_GetMoniker (IOleClientSite *iface, DWORD dwAssign, DWORD dwWhichMoniker, IMoniker **ppmk)
 
static HRESULT WINAPI OleClientSite_GetContainer (IOleClientSite *iface, IOleContainer **container)
 
static HRESULT WINAPI OleClientSite_ShowObject (IOleClientSite *iface)
 
static HRESULT WINAPI OleClientSite_OnShowWindow (IOleClientSite *iface, BOOL fShow)
 
static HRESULT WINAPI OleClientSite_RequestNewObjectLayout (IOleClientSite *iface)
 
static IOCSimpl_from_IOleContainer (IOleContainer *iface)
 
static HRESULT WINAPI OleContainer_QueryInterface (IOleContainer *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI OleContainer_AddRef (IOleContainer *iface)
 
static ULONG WINAPI OleContainer_Release (IOleContainer *iface)
 
static HRESULT WINAPI OleContainer_ParseDisplayName (IOleContainer *iface, IBindCtx *pbc, LPOLESTR pszDisplayName, ULONG *pchEaten, IMoniker **ppmkOut)
 
static HRESULT WINAPI OleContainer_EnumObjects (IOleContainer *iface, DWORD grfFlags, IEnumUnknown **ppenum)
 
static HRESULT WINAPI OleContainer_LockContainer (IOleContainer *iface, BOOL fLock)
 
static IOCSimpl_from_IOleInPlaceSiteWindowless (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_QueryInterface (IOleInPlaceSiteWindowless *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI OleInPlaceSiteWindowless_AddRef (IOleInPlaceSiteWindowless *iface)
 
static ULONG WINAPI OleInPlaceSiteWindowless_Release (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_GetWindow (IOleInPlaceSiteWindowless *iface, HWND *phwnd)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_ContextSensitiveHelp (IOleInPlaceSiteWindowless *iface, BOOL fEnterMode)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_CanInPlaceActivate (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_OnInPlaceActivate (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_OnUIActivate (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_GetWindowContext (IOleInPlaceSiteWindowless *iface, IOleInPlaceFrame **frame, IOleInPlaceUIWindow **ppDoc, LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_Scroll (IOleInPlaceSiteWindowless *iface, SIZE scrollExtent)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_OnUIDeactivate (IOleInPlaceSiteWindowless *iface, BOOL fUndoable)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_OnInPlaceDeactivate (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_DiscardUndoState (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_DeactivateAndUndo (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_OnPosRectChange (IOleInPlaceSiteWindowless *iface, LPCRECT lprcPosRect)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_OnInPlaceActivateEx (IOleInPlaceSiteWindowless *iface, BOOL *pfNoRedraw, DWORD dwFlags)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_OnInPlaceDeactivateEx (IOleInPlaceSiteWindowless *iface, BOOL fNoRedraw)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_RequestUIActivate (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_CanWindowlessActivate (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_GetCapture (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_SetCapture (IOleInPlaceSiteWindowless *iface, BOOL fCapture)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_GetFocus (IOleInPlaceSiteWindowless *iface)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_SetFocus (IOleInPlaceSiteWindowless *iface, BOOL fFocus)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_GetDC (IOleInPlaceSiteWindowless *iface, LPCRECT pRect, DWORD grfFlags, HDC *phDC)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_ReleaseDC (IOleInPlaceSiteWindowless *iface, HDC hDC)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_InvalidateRect (IOleInPlaceSiteWindowless *iface, LPCRECT pRect, BOOL fErase)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_InvalidateRgn (IOleInPlaceSiteWindowless *iface, HRGN hRGN, BOOL fErase)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_ScrollRect (IOleInPlaceSiteWindowless *iface, INT dx, INT dy, LPCRECT pRectScroll, LPCRECT pRectClip)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_AdjustRect (IOleInPlaceSiteWindowless *iface, LPRECT prc)
 
static HRESULT WINAPI OleInPlaceSiteWindowless_OnDefWindowMessage (IOleInPlaceSiteWindowless *iface, UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult)
 
static IOCSimpl_from_IOleInPlaceFrame (IOleInPlaceFrame *iface)
 
static HRESULT WINAPI OleInPlaceFrame_QueryInterface (IOleInPlaceFrame *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI OleInPlaceFrame_AddRef (IOleInPlaceFrame *iface)
 
static ULONG WINAPI OleInPlaceFrame_Release (IOleInPlaceFrame *iface)
 
static HRESULT WINAPI OleInPlaceFrame_GetWindow (IOleInPlaceFrame *iface, HWND *phWnd)
 
static HRESULT WINAPI OleInPlaceFrame_ContextSensitiveHelp (IOleInPlaceFrame *iface, BOOL fEnterMode)
 
static HRESULT WINAPI OleInPlaceFrame_GetBorder (IOleInPlaceFrame *iface, LPRECT lprectBorder)
 
static HRESULT WINAPI OleInPlaceFrame_RequestBorderSpace (IOleInPlaceFrame *iface, LPCBORDERWIDTHS pborderwidths)
 
static HRESULT WINAPI OleInPlaceFrame_SetBorderSpace (IOleInPlaceFrame *iface, LPCBORDERWIDTHS pborderwidths)
 
static HRESULT WINAPI OleInPlaceFrame_SetActiveObject (IOleInPlaceFrame *iface, IOleInPlaceActiveObject *pActiveObject, LPCOLESTR pszObjName)
 
static HRESULT WINAPI OleInPlaceFrame_InsertMenus (IOleInPlaceFrame *iface, HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths)
 
static HRESULT WINAPI OleInPlaceFrame_SetMenu (IOleInPlaceFrame *iface, HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject)
 
static HRESULT WINAPI OleInPlaceFrame_RemoveMenus (IOleInPlaceFrame *iface, HMENU hmenuShared)
 
static HRESULT WINAPI OleInPlaceFrame_SetStatusText (IOleInPlaceFrame *iface, LPCOLESTR pszStatusText)
 
static HRESULT WINAPI OleInPlaceFrame_EnableModeless (IOleInPlaceFrame *iface, BOOL fEnable)
 
static HRESULT WINAPI OleInPlaceFrame_TranslateAccelerator (IOleInPlaceFrame *iface, LPMSG lpmsg, WORD wID)
 
static IOCSimpl_from_IOleControlSite (IOleControlSite *iface)
 
static HRESULT WINAPI OleControlSite_QueryInterface (IOleControlSite *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI OleControlSite_AddRef (IOleControlSite *iface)
 
static ULONG WINAPI OleControlSite_Release (IOleControlSite *iface)
 
static HRESULT WINAPI OleControlSite_OnControlInfoChanged (IOleControlSite *This)
 
static HRESULT WINAPI OleControlSite_LockInPlaceActive (IOleControlSite *This, BOOL fLock)
 
static HRESULT WINAPI OleControlSite_GetExtendedControl (IOleControlSite *This, IDispatch **ppDisp)
 
static HRESULT WINAPI OleControlSite_TransformCoords (IOleControlSite *This, POINTL *pPtlHimetric, POINTF *pPtfContainer, DWORD dwFlags)
 
static HRESULT WINAPI OleControlSite_TranslateAccelerator (IOleControlSite *This, MSG *pMsg, DWORD grfModifiers)
 
static HRESULT WINAPI OleControlSite_OnFocus (IOleControlSite *This, BOOL fGotFocus)
 
static HRESULT WINAPI OleControlSite_ShowPropertyFrame (IOleControlSite *This)
 
static void IOCS_OnSize (IOCS *This, LPCRECT rect)
 
static void IOCS_OnShow (IOCS *This, BOOL fShow)
 
static void IOCS_OnDraw (IOCS *This)
 
static LRESULT IOCS_OnWndProc (IOCS *This, HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static LRESULT CALLBACK AtlHost_wndproc (HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
 
static HRESULT IOCS_Attach (IOCS *This, HWND hWnd, IUnknown *pUnkControl)
 
static HRESULT IOCS_Init (IOCS *This)
 
static HRESULT IOCS_Create (HWND hWnd, IUnknown *pUnkControl, IUnknown **container)
 
HRESULT WINAPI AtlAxCreateControl (LPCOLESTR lpszName, HWND hWnd, IStream *pStream, IUnknown **ppUnkContainer)
 
static enum content get_content_type (LPCOLESTR name, CLSID *control_id)
 
HRESULT WINAPI AtlAxCreateControlLicEx (LPCOLESTR lpszName, HWND hWnd, IStream *pStream, IUnknown **ppUnkContainer, IUnknown **ppUnkControl, REFIID iidSink, IUnknown *punkSink, BSTR lic)
 
HRESULT WINAPI AtlAxAttachControl (IUnknown *control, HWND hWnd, IUnknown **container)
 
static BOOL advance_array (WORD **pptr, DWORD *palloc, DWORD *pfilled, const WORD *data, DWORD size)
 
static LPDLGTEMPLATEW AX_ConvertDialogTemplate (LPCDLGTEMPLATEW src_tmpl)
 
HWND WINAPI AtlAxCreateDialogA (HINSTANCE hInst, LPCSTR name, HWND owner, DLGPROC dlgProc, LPARAM param)
 
HWND WINAPI AtlAxCreateDialogW (HINSTANCE hInst, LPCWSTR name, HWND owner, DLGPROC dlgProc, LPARAM param)
 
HRESULT WINAPI AtlAxGetHost (HWND hWnd, IUnknown **host)
 
HRESULT WINAPI AtlAxGetControl (HWND hWnd, IUnknown **pUnk)
 
INT_PTR WINAPI AtlAxDialogBoxW (HINSTANCE hInstance, LPCWSTR lpTemplateName, HWND hWndParent, DLGPROC lpDialogProc, LPARAM dwInitParam)
 
INT_PTR WINAPI AtlAxDialogBoxA (HINSTANCE hInstance, LPCSTR lpTemplateName, HWND hWndParent, DLGPROC lpDialogProc, LPARAM dwInitParam)
 
HRESULT WINAPI AtlAxCreateControlLic (const WCHAR *lpTricsData, HWND hwnd, IStream *stream, IUnknown **container, BSTR lic)
 
HRESULT WINAPI AtlAxCreateControlEx (const WCHAR *lpTricsData, HWND hwnd, IStream *stream, IUnknown **container, IUnknown **control, REFIID iidSink, IUnknown *punkSink)
 

Variables

static const WCHAR wine_atl_iocsW [] = {'_','_','W','I','N','E','_','A','T','L','_','I','O','C','S','\0'}
 
static const IOleClientSiteVtbl OleClientSite_vtbl
 
static const IOleContainerVtbl OleContainer_vtbl
 
static const
IOleInPlaceSiteWindowlessVtbl 
OleInPlaceSiteWindowless_vtbl
 
static const IOleInPlaceFrameVtbl OleInPlaceFrame_vtbl
 
static const IOleControlSiteVtbl OleControlSite_vtbl
 

Macro Definition Documentation

#define ATL_NAME_SUFFIX   0

Referenced by AtlAxWinInit().

#define GET_DWORD (   x)    (*(const DWORD *)(x))
#define GET_WORD (   x)    (*(const WORD *)(x))
#define PUT_BLOCK (   x,
  y 
)    do {if (!advance_array(&output, &allocated, &filled, (x), (y))) return NULL;} while (0)
#define PUT_WORD (   x)    do {WORD w = (x);PUT_BLOCK(&w, 1);} while(0)

Typedef Documentation

typedef struct IOCS IOCS

Enumeration Type Documentation

Enumerator
IsEmpty 
IsGUID 
IsHTML 
IsURL 
IsUnknown 

Definition at line 977 of file atl_ax.c.

978 {
979  IsEmpty = 0,
980  IsGUID = 1,
981  IsHTML = 2,
982  IsURL = 3,
983  IsUnknown = 4
984 };
Definition: atl_ax.c:980
Definition: atl_ax.c:982
Definition: atl_ax.c:981

Function Documentation

static BOOL advance_array ( WORD **  pptr,
DWORD palloc,
DWORD pfilled,
const WORD data,
DWORD  size 
)
inlinestatic

Definition at line 1147 of file atl_ax.c.

1148 {
1149  if ( (*pfilled + size) > *palloc )
1150  {
1151  *palloc = ((*pfilled+size) + 0xFF) & ~0xFF;
1152  *pptr = HeapReAlloc( GetProcessHeap(), 0, *pptr, *palloc * sizeof(WORD) );
1153  if (!*pptr)
1154  return FALSE;
1155  }
1156  RtlMoveMemory( *pptr+*pfilled, data, size * sizeof(WORD) );
1157  *pfilled += size;
1158  return TRUE;
1159 }
unsigned short WORD
Definition: ntddk_ex.h:93
#define TRUE
Definition: types.h:120
#define RtlMoveMemory(Destination, Source, Length)
Definition: typedefs.h:263
#define FALSE
Definition: types.h:117
#define GetProcessHeap()
Definition: compat.h:395
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLsizeiptr size
Definition: glext.h:5919
#define HeapReAlloc
Definition: compat.h:393
HRESULT WINAPI AtlAxAttachControl ( IUnknown control,
HWND  hWnd,
IUnknown **  container 
)

Definition at line 1131 of file atl_ax.c.

Referenced by AtlAxCreateControlLicEx(), and test_AtlAxAttachControl().

1132 {
1133  HRESULT hr;
1134 
1135  TRACE("(%p %p %p)\n", control, hWnd, container);
1136 
1137  if (!control)
1138  return E_INVALIDARG;
1139 
1140  hr = IOCS_Create( hWnd, control, container );
1141  return hWnd ? hr : S_FALSE;
1142 }
HWND hWnd
Definition: settings.c:17
static HRESULT IOCS_Create(HWND hWnd, IUnknown *pUnkControl, IUnknown **container)
Definition: atl_ax.c:927
#define S_FALSE
Definition: winerror.h:2357
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:77
HRESULT WINAPI AtlAxCreateControl ( LPCOLESTR  lpszName,
HWND  hWnd,
IStream pStream,
IUnknown **  ppUnkContainer 
)

Definition at line 970 of file atl_ax.c.

972 {
973  return AtlAxCreateControlEx( lpszName, hWnd, pStream, ppUnkContainer,
974  NULL, NULL, NULL );
975 }
HWND hWnd
Definition: settings.c:17
smooth NULL
Definition: ftsmooth.c:557
HRESULT WINAPI AtlAxCreateControlEx(const WCHAR *lpTricsData, HWND hwnd, IStream *stream, IUnknown **container, IUnknown **control, REFIID iidSink, IUnknown *punkSink)
Definition: atl_ax.c:1428
HRESULT WINAPI AtlAxCreateControlEx ( const WCHAR lpTricsData,
HWND  hwnd,
IStream stream,
IUnknown **  container,
IUnknown **  control,
REFIID  iidSink,
IUnknown punkSink 
)

Definition at line 1428 of file atl_ax.c.

Referenced by AtlAxCreateControl(), AtlAxWin_wndproc(), and test_AtlAxCreateControl().

1430 {
1431  return AtlAxCreateControlLicEx(lpTricsData, hwnd, stream, container, control, iidSink, punkSink, NULL);
1432 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
HRESULT WINAPI AtlAxCreateControlLicEx(LPCOLESTR lpszName, HWND hWnd, IStream *pStream, IUnknown **ppUnkContainer, IUnknown **ppUnkControl, REFIID iidSink, IUnknown *punkSink, BSTR lic)
Definition: atl_ax.c:1026
smooth NULL
Definition: ftsmooth.c:557
HRESULT WINAPI AtlAxCreateControlLic ( const WCHAR lpTricsData,
HWND  hwnd,
IStream stream,
IUnknown **  container,
BSTR  lic 
)

Definition at line 1419 of file atl_ax.c.

1420 {
1421  return AtlAxCreateControlLicEx(lpTricsData, hwnd, stream, container, NULL, NULL, NULL, lic);
1422 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
HRESULT WINAPI AtlAxCreateControlLicEx(LPCOLESTR lpszName, HWND hWnd, IStream *pStream, IUnknown **ppUnkContainer, IUnknown **ppUnkControl, REFIID iidSink, IUnknown *punkSink, BSTR lic)
Definition: atl_ax.c:1026
smooth NULL
Definition: ftsmooth.c:557
HRESULT WINAPI AtlAxCreateControlLicEx ( LPCOLESTR  lpszName,
HWND  hWnd,
IStream pStream,
IUnknown **  ppUnkContainer,
IUnknown **  ppUnkControl,
REFIID  iidSink,
IUnknown punkSink,
BSTR  lic 
)

Definition at line 1026 of file atl_ax.c.

Referenced by AtlAxCreateControlEx(), and AtlAxCreateControlLic().

1029 {
1030  CLSID controlId;
1031  HRESULT hRes;
1032  IOleObject *pControl;
1033  IUnknown *pUnkControl = NULL;
1034  IPersistStreamInit *pPSInit;
1035  IUnknown *pContainer = NULL;
1036  enum content content;
1037 
1038  TRACE("(%s %p %p %p %p %p %p %s)\n", debugstr_w(lpszName), hWnd, pStream,
1039  ppUnkContainer, ppUnkControl, iidSink, punkSink, debugstr_w(lic));
1040 
1041  if (lic)
1042  FIXME("semi stub\n");
1043 
1044  if (ppUnkContainer) *ppUnkContainer = NULL;
1045  if (ppUnkControl) *ppUnkControl = NULL;
1046 
1047  content = get_content_type(lpszName, &controlId);
1048 
1049  if (content == IsEmpty)
1050  return S_OK;
1051 
1052  if (content == IsUnknown)
1053  return CO_E_CLASSSTRING;
1054 
1055  hRes = CoCreateInstance( &controlId, 0, CLSCTX_ALL, &IID_IOleObject,
1056  (void**) &pControl );
1057  if ( FAILED( hRes ) )
1058  {
1059  WARN( "cannot create ActiveX control %s instance - error 0x%08x\n",
1060  debugstr_guid( &controlId ), hRes );
1061  return hRes;
1062  }
1063 
1064  hRes = IOleObject_QueryInterface( pControl, &IID_IPersistStreamInit, (void**) &pPSInit );
1065  if ( SUCCEEDED( hRes ) )
1066  {
1067  if (!pStream)
1068  IPersistStreamInit_InitNew( pPSInit );
1069  else
1070  IPersistStreamInit_Load( pPSInit, pStream );
1071  IPersistStreamInit_Release( pPSInit );
1072  } else
1073  WARN("cannot get IID_IPersistStreamInit out of control\n");
1074 
1075  IOleObject_QueryInterface( pControl, &IID_IUnknown, (void**) &pUnkControl );
1076  IOleObject_Release( pControl );
1077 
1078 
1079  hRes = AtlAxAttachControl( pUnkControl, hWnd, &pContainer );
1080  if ( FAILED( hRes ) )
1081  WARN("cannot attach control to window\n");
1082 
1083  if ( content == IsURL )
1084  {
1085  IWebBrowser2 *browser;
1086 
1087  hRes = IOleObject_QueryInterface( pControl, &IID_IWebBrowser2, (void**) &browser );
1088  if ( !browser )
1089  WARN( "Cannot query IWebBrowser2 interface: %08x\n", hRes );
1090  else {
1091  VARIANT url;
1092 
1093  IWebBrowser2_put_Visible( browser, VARIANT_TRUE ); /* it seems that native does this on URL (but do not on MSHTML:! why? */
1094 
1095  V_VT(&url) = VT_BSTR;
1096  V_BSTR(&url) = SysAllocString( lpszName );
1097 
1098  hRes = IWebBrowser2_Navigate2( browser, &url, NULL, NULL, NULL, NULL );
1099  if ( FAILED( hRes ) )
1100  WARN( "IWebBrowser2::Navigate2 failed: %08x\n", hRes );
1101  SysFreeString( V_BSTR(&url) );
1102 
1103  IWebBrowser2_Release( browser );
1104  }
1105  }
1106 
1107  if (ppUnkContainer)
1108  {
1109  *ppUnkContainer = pContainer;
1110  if ( pContainer )
1111  IUnknown_AddRef( pContainer );
1112  }
1113  if (ppUnkControl)
1114  {
1115  *ppUnkControl = pUnkControl;
1116  if ( pUnkControl )
1117  IUnknown_AddRef( pUnkControl );
1118  }
1119 
1120  if ( pUnkControl )
1121  IUnknown_Release( pUnkControl );
1122  if ( pContainer )
1123  IUnknown_Release( pContainer );
1124 
1125  return S_OK;
1126 }
const GUID IID_IUnknown
#define WARN(fmt,...)
Definition: debug.h:111
HWND hWnd
Definition: settings.c:17
void WINAPI SysFreeString(BSTR str)
Definition: oleaut.c:258
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
content
Definition: atl_ax.c:977
smooth NULL
Definition: ftsmooth.c:557
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:225
Definition: atl_ax.c:982
#define debugstr_guid
Definition: kernel32.h:35
static enum content get_content_type(LPCOLESTR name, CLSID *control_id)
Definition: atl_ax.c:986
const GUID IID_IOleObject
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:77
static const WCHAR url[]
Definition: encode.c:1431
HRESULT WINAPI AtlAxAttachControl(IUnknown *control, HWND hWnd, IUnknown **container)
Definition: atl_ax.c:1131
const GUID IID_IPersistStreamInit
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3185
#define S_OK
Definition: intsafe.h:59
#define CO_E_CLASSSTRING
Definition: winerror.h:2806
#define SUCCEEDED(hr)
Definition: intsafe.h:57
HWND WINAPI AtlAxCreateDialogA ( HINSTANCE  hInst,
LPCSTR  name,
HWND  owner,
DLGPROC  dlgProc,
LPARAM  param 
)

Definition at line 1290 of file atl_ax.c.

1291 {
1292  HWND res = NULL;
1293  int length;
1294  WCHAR *nameW;
1295 
1296  if (IS_INTRESOURCE(name))
1297  return AtlAxCreateDialogW( hInst, (LPCWSTR) name, owner, dlgProc, param );
1298 
1299  length = MultiByteToWideChar( CP_ACP, 0, name, -1, NULL, 0 );
1300  nameW = HeapAlloc( GetProcessHeap(), 0, length * sizeof(WCHAR) );
1301  if (nameW)
1302  {
1303  MultiByteToWideChar( CP_ACP, 0, name, -1, nameW, length );
1304  res = AtlAxCreateDialogW( hInst, nameW, owner, dlgProc, param );
1305  HeapFree( GetProcessHeap(), 0, nameW );
1306  }
1307  return res;
1308 }
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define CP_ACP
Definition: compat.h:99
HANDLE HWND
Definition: compat.h:13
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
smooth NULL
Definition: ftsmooth.c:557
static const WCHAR nameW[]
Definition: main.c:46
#define IS_INTRESOURCE(i)
Definition: winuser.h:580
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
GLfloat param
Definition: glext.h:5796
HINSTANCE hInst
Definition: dxdiag.c:13
HWND WINAPI AtlAxCreateDialogW(HINSTANCE hInst, LPCWSTR name, HWND owner, DLGPROC dlgProc, LPARAM param)
Definition: atl_ax.c:1316
#define MultiByteToWideChar
Definition: compat.h:100
Definition: name.c:23
GLuint res
Definition: glext.h:9613
#define HeapFree(x, y, z)
Definition: compat.h:394
HWND WINAPI AtlAxCreateDialogW ( HINSTANCE  hInst,
LPCWSTR  name,
HWND  owner,
DLGPROC  dlgProc,
LPARAM  param 
)

Definition at line 1316 of file atl_ax.c.

Referenced by AtlAxCreateDialogA().

1317 {
1318  HRSRC hrsrc;
1319  HGLOBAL hgl;
1321  LPDLGTEMPLATEW newptr;
1322  HWND res;
1323 
1324  TRACE("(%p %s %p %p %lx)\n", hInst, debugstr_w(name), owner, dlgProc, param);
1325 
1326  hrsrc = FindResourceW( hInst, name, (LPWSTR)RT_DIALOG );
1327  if ( !hrsrc )
1328  return NULL;
1329  hgl = LoadResource (hInst, hrsrc);
1330  if ( !hgl )
1331  return NULL;
1332  ptr = LockResource ( hgl );
1333  if (!ptr)
1334  {
1335  FreeResource( hgl );
1336  return NULL;
1337  }
1338  newptr = AX_ConvertDialogTemplate( ptr );
1339  if ( newptr )
1340  {
1341  res = CreateDialogIndirectParamW( hInst, newptr, owner, dlgProc, param );
1342  HeapFree( GetProcessHeap(), 0, newptr );
1343  } else
1344  res = NULL;
1345  FreeResource ( hrsrc );
1346  return res;
1347 }
HANDLE HGLOBAL
Definition: windef.h:266
HANDLE HWND
Definition: compat.h:13
HWND WINAPI CreateDialogIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
LPVOID WINAPI LockResource(HGLOBAL handle)
Definition: res.c:550
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
Definition: res.c:176
#define debugstr_w
Definition: kernel32.h:32
BOOL WINAPI FreeResource(HGLOBAL handle)
Definition: res.c:559
static PVOID ptr
Definition: dispmode.c:30
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
Definition: res.c:532
smooth NULL
Definition: ftsmooth.c:557
#define RT_DIALOG
Definition: pedump.c:367
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:395
GLfloat param
Definition: glext.h:5796
static LPDLGTEMPLATEW AX_ConvertDialogTemplate(LPCDLGTEMPLATEW src_tmpl)
Definition: atl_ax.c:1164
HINSTANCE hInst
Definition: dxdiag.c:13
Definition: name.c:23
GLuint res
Definition: glext.h:9613
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define HeapFree(x, y, z)
Definition: compat.h:394
INT_PTR WINAPI AtlAxDialogBoxA ( HINSTANCE  hInstance,
LPCSTR  lpTemplateName,
HWND  hWndParent,
DLGPROC  lpDialogProc,
LPARAM  dwInitParam 
)

Definition at line 1408 of file atl_ax.c.

1410 {
1411  FIXME("(%p %s %p %p %lx)\n", hInstance, debugstr_a(lpTemplateName), hWndParent, lpDialogProc, dwInitParam);
1412  return 0;
1413 }
HINSTANCE hInstance
Definition: charmap.c:19
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
INT_PTR WINAPI AtlAxDialogBoxW ( HINSTANCE  hInstance,
LPCWSTR  lpTemplateName,
HWND  hWndParent,
DLGPROC  lpDialogProc,
LPARAM  dwInitParam 
)

Definition at line 1397 of file atl_ax.c.

1399 {
1400  FIXME("(%p %s %p %p %lx)\n", hInstance, debugstr_w(lpTemplateName), hWndParent, lpDialogProc, dwInitParam);
1401  return 0;
1402 }
HINSTANCE hInstance
Definition: charmap.c:19
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
HRESULT WINAPI AtlAxGetControl ( HWND  hWnd,
IUnknown **  pUnk 
)

Definition at line 1375 of file atl_ax.c.

Referenced by test_ax_win().

1376 {
1377  IOCS *This;
1378 
1379  TRACE( "(%p, %p)\n", hWnd, pUnk );
1380 
1381  *pUnk = NULL;
1382 
1383  This = (IOCS*) GetPropW( hWnd, wine_atl_iocsW );
1384  if ( !This || !This->control )
1385  {
1386  WARN("No control attached to %p\n", hWnd );
1387  return E_FAIL;
1388  }
1389 
1390  return IOleObject_QueryInterface( This->control, &IID_IUnknown, (void**) pUnk );
1391 }
Definition: atl_ax.c:28
const GUID IID_IUnknown
#define WARN(fmt,...)
Definition: debug.h:111
HWND hWnd
Definition: settings.c:17
#define E_FAIL
Definition: ddrawi.h:102
static const WCHAR wine_atl_iocsW[]
Definition: atl_ax.c:43
smooth NULL
Definition: ftsmooth.c:557
#define TRACE(s)
Definition: solgame.cpp:4
IOleObject * control
Definition: atl_ax.c:37
HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR)
HRESULT WINAPI AtlAxGetHost ( HWND  hWnd,
IUnknown **  host 
)

Definition at line 1353 of file atl_ax.c.

1354 {
1355  IOCS *This;
1356 
1357  TRACE("(%p, %p)\n", hWnd, host);
1358 
1359  *host = NULL;
1360 
1361  This = (IOCS*) GetPropW( hWnd, wine_atl_iocsW );
1362  if ( !This )
1363  {
1364  WARN("No container attached to %p\n", hWnd );
1365  return E_FAIL;
1366  }
1367 
1368  return IOleClientSite_QueryInterface(&This->IOleClientSite_iface, &IID_IUnknown, (void**)host);
1369 }
Definition: atl_ax.c:28
const GUID IID_IUnknown
#define WARN(fmt,...)
Definition: debug.h:111
HWND hWnd
Definition: settings.c:17
#define E_FAIL
Definition: ddrawi.h:102
static const WCHAR wine_atl_iocsW[]
Definition: atl_ax.c:43
smooth NULL
Definition: ftsmooth.c:557
#define TRACE(s)
Definition: solgame.cpp:4
HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR)
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static LRESULT CALLBACK AtlAxWin_wndproc ( HWND  hWnd,
UINT  wMsg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 48 of file atl_ax.c.

Referenced by AtlAxWinInit().

49 {
50  if ( wMsg == WM_CREATE )
51  {
53  WCHAR *ptr = HeapAlloc( GetProcessHeap(), 0, len*sizeof(WCHAR) );
54  if (!ptr)
55  return 1;
56  GetWindowTextW( hWnd, ptr, len );
58  HeapFree( GetProcessHeap(), 0, ptr );
59  return 0;
60  }
61  return DefWindowProcW( hWnd, wMsg, wParam, lParam );
62 }
__wchar_t WCHAR
Definition: xmlstorage.h:180
HWND hWnd
Definition: settings.c:17
DWORD DWORD
Definition: winlogon.h:75
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
static PVOID ptr
Definition: dispmode.c:30
smooth NULL
Definition: ftsmooth.c:557
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
UINT WPARAM wParam
Definition: precomp.h:53
int WINAPI GetWindowTextLengthW(_In_ HWND)
GLenum GLsizei len
Definition: glext.h:6722
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
Definition: window.c:1351
UINT WPARAM LPARAM lParam
Definition: precomp.h:53
#define WM_CREATE
Definition: winuser.h:1580
HRESULT WINAPI AtlAxCreateControlEx(const WCHAR *lpTricsData, HWND hwnd, IStream *stream, IUnknown **container, IUnknown **control, REFIID iidSink, IUnknown *punkSink)
Definition: atl_ax.c:1428
#define HeapFree(x, y, z)
Definition: compat.h:394
BOOL WINAPI AtlAxWinInit ( void  )

Definition at line 73 of file atl_ax.c.

Referenced by test_ax_win().

74 {
75  WNDCLASSEXW wcex;
76 
77 #if _ATL_VER <= _ATL_VER_30
78 #define ATL_NAME_SUFFIX 0
79 #elif _ATL_VER == _ATL_VER_80
80 #define ATL_NAME_SUFFIX '8','0',0
81 #elif _ATL_VER == _ATL_VER_90
82 #define ATL_NAME_SUFFIX '9','0',0
83 #elif _ATL_VER == _ATL_VER_100
84 #define ATL_NAME_SUFFIX '1','0','0',0
85 #elif _ATL_VER == _ATL_VER_110
86 #define ATL_NAME_SUFFIX '1','1','0',0
87 #else
88 #error Unsupported version
89 #endif
90 
91  const WCHAR AtlAxWinW[] = {'A','t','l','A','x','W','i','n',ATL_NAME_SUFFIX};
92 
93  FIXME("version %04x semi-stub\n", _ATL_VER);
94 
95  if ( FAILED( OleInitialize(NULL) ) )
96  return FALSE;
97 
98  wcex.cbSize = sizeof(wcex);
100  wcex.cbClsExtra = 0;
101  wcex.cbWndExtra = 0;
102  wcex.hInstance = GetModuleHandleW( NULL );
103  wcex.hIcon = NULL;
104  wcex.hCursor = NULL;
105  wcex.hbrBackground = NULL;
106  wcex.lpszMenuName = NULL;
107  wcex.hIconSm = 0;
108 
110  wcex.lpszClassName = AtlAxWinW;
111  if ( !RegisterClassExW( &wcex ) )
112  return FALSE;
113 
114  if(_ATL_VER > _ATL_VER_30) {
115  const WCHAR AtlAxWinLicW[] = {'A','t','l','A','x','W','i','n','L','i','c',ATL_NAME_SUFFIX};
116 
117  wcex.lpszClassName = AtlAxWinLicW;
118  if ( !RegisterClassExW( &wcex ) )
119  return FALSE;
120  }
121 
122  return TRUE;
123 }
#define TRUE
Definition: types.h:120
int cbWndExtra
Definition: winuser.h:3163
__wchar_t WCHAR
Definition: xmlstorage.h:180
HICON hIcon
Definition: winuser.h:3165
#define _ATL_VER_30
Definition: atlbase.h:28
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)
LPCWSTR lpszMenuName
Definition: winuser.h:3168
#define FALSE
Definition: types.h:117
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:557
int cbClsExtra
Definition: winuser.h:3162
LPCWSTR lpszClassName
Definition: winuser.h:3169
#define _ATL_VER
Definition: atlbase.h:34
HBRUSH hbrBackground
Definition: winuser.h:3167
UINT cbSize
Definition: winuser.h:3159
#define CS_GLOBALCLASS
Definition: winuser.h:647
HINSTANCE hInstance
Definition: winuser.h:3164
HCURSOR hCursor
Definition: winuser.h:3166
#define CS_DBLCLKS
Definition: winuser.h:646
UINT style
Definition: winuser.h:3160
WNDPROC lpfnWndProc
Definition: winuser.h:3161
HRESULT WINAPI DECLSPEC_HOTPATCH OleInitialize(LPVOID reserved)
Definition: ole2.c:145
static LRESULT CALLBACK AtlAxWin_wndproc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
Definition: atl_ax.c:48
HICON hIconSm
Definition: winuser.h:3170
#define ATL_NAME_SUFFIX
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:844
static LRESULT CALLBACK AtlHost_wndproc ( HWND  hWnd,
UINT  wMsg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 892 of file atl_ax.c.

Referenced by IOCS_Attach().

893 {
894  IOCS *This = (IOCS*) GetPropW( hWnd, wine_atl_iocsW );
895  return IOCS_OnWndProc( This, hWnd, wMsg, wParam, lParam );
896 }
Definition: atl_ax.c:28
static LRESULT IOCS_OnWndProc(IOCS *This, HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: atl_ax.c:865
HWND hWnd
Definition: settings.c:17
static const WCHAR wine_atl_iocsW[]
Definition: atl_ax.c:43
UINT WPARAM wParam
Definition: precomp.h:53
UINT WPARAM LPARAM lParam
Definition: precomp.h:53
HANDLE WINAPI GetPropW(_In_ HWND, _In_ LPCWSTR)
static LPDLGTEMPLATEW AX_ConvertDialogTemplate ( LPCDLGTEMPLATEW  src_tmpl)
static

Definition at line 1164 of file atl_ax.c.

Referenced by AtlAxCreateDialogW().

1165 {
1166 #define GET_WORD(x) (*(const WORD *)(x))
1167 #define GET_DWORD(x) (*(const DWORD *)(x))
1168 #define PUT_BLOCK(x,y) do {if (!advance_array(&output, &allocated, &filled, (x), (y))) return NULL;} while (0)
1169 #define PUT_WORD(x) do {WORD w = (x);PUT_BLOCK(&w, 1);} while(0)
1170  const WORD *tmp, *src = (const WORD *)src_tmpl;
1171  WORD *output;
1172  DWORD allocated, filled; /* in WORDs */
1173  BOOL ext;
1174  WORD signature, dlgver, rescount;
1175  DWORD style;
1176 
1177  filled = 0; allocated = 256;
1178  output = HeapAlloc( GetProcessHeap(), 0, allocated * sizeof(WORD) );
1179  if (!output)
1180  return NULL;
1181 
1182  /* header */
1183  tmp = src;
1184  signature = GET_WORD(src);
1185  dlgver = GET_WORD(src + 1);
1186  if (signature == 1 && dlgver == 0xFFFF)
1187  {
1188  ext = TRUE;
1189  src += 6;
1190  style = GET_DWORD(src);
1191  src += 2;
1192  rescount = GET_WORD(src++);
1193  src += 4;
1194  if ( GET_WORD(src) == 0xFFFF ) /* menu */
1195  src += 2;
1196  else
1197  src += strlenW(src) + 1;
1198  if ( GET_WORD(src) == 0xFFFF ) /* class */
1199  src += 2;
1200  else
1201  src += strlenW(src) + 1;
1202  src += strlenW(src) + 1; /* title */
1203  if ( style & (DS_SETFONT | DS_SHELLFONT) )
1204  {
1205  src += 3;
1206  src += strlenW(src) + 1;
1207  }
1208  } else {
1209  ext = FALSE;
1210  style = GET_DWORD(src);
1211  src += 4;
1212  rescount = GET_WORD(src++);
1213  src += 4;
1214  if ( GET_WORD(src) == 0xFFFF ) /* menu */
1215  src += 2;
1216  else
1217  src += strlenW(src) + 1;
1218  if ( GET_WORD(src) == 0xFFFF ) /* class */
1219  src += 2;
1220  else
1221  src += strlenW(src) + 1;
1222  src += strlenW(src) + 1; /* title */
1223  if ( style & DS_SETFONT )
1224  {
1225  src++;
1226  src += strlenW(src) + 1;
1227  }
1228  }
1229  PUT_BLOCK(tmp, src-tmp);
1230 
1231  while(rescount--)
1232  {
1233  src = (const WORD *)( ( ((ULONG_PTR)src) + 3) & ~3); /* align on DWORD boundary */
1234  filled = (filled + 1) & ~1; /* depends on DWORD-aligned allocation unit */
1235 
1236  tmp = src;
1237  if (ext)
1238  src += 12;
1239  else
1240  src += 9;
1241  PUT_BLOCK(tmp, src-tmp);
1242 
1243  tmp = src;
1244  if ( GET_WORD(src) == 0xFFFF ) /* class */
1245  {
1246  src += 2;
1247  } else
1248  {
1249  src += strlenW(src) + 1;
1250  }
1251  src += strlenW(src) + 1; /* title */
1252  if ( GET_WORD(tmp) == '{' ) /* all this mess created because of this line */
1253  {
1254  static const WCHAR AtlAxWin[] = {'A','t','l','A','x','W','i','n', 0};
1255  PUT_BLOCK(AtlAxWin, sizeof(AtlAxWin)/sizeof(WCHAR));
1256  PUT_BLOCK(tmp, strlenW(tmp)+1);
1257  } else
1258  PUT_BLOCK(tmp, src-tmp);
1259 
1260  if ( GET_WORD(src) )
1261  {
1262  WORD size = (GET_WORD(src)+sizeof(WORD)-1) / sizeof(WORD); /* quite ugly :( Maybe use BYTE* instead of WORD* everywhere ? */
1263  PUT_BLOCK(src, size);
1264  src+=size;
1265  }
1266  else
1267  {
1268  PUT_WORD(0);
1269  src++;
1270  }
1271  }
1272  return (LPDLGTEMPLATEW) output;
1273 }
#define GET_DWORD(x)
UINT style
Definition: startmenu.cpp:1386
unsigned short WORD
Definition: ntddk_ex.h:93
#define TRUE
Definition: types.h:120
static UCHAR ULONG UCHAR ULONG UCHAR * output
Definition: bcrypt.c:29
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
Definition: unicode.h:212
#define PUT_WORD(x)
__wchar_t WCHAR
Definition: xmlstorage.h:180
DWORD DWORD
Definition: winlogon.h:75
uint32_t ULONG_PTR
Definition: typedefs.h:63
GLuint const GLubyte GLvoid * src
Definition: s_context.h:57
#define FALSE
Definition: types.h:117
smooth NULL
Definition: ftsmooth.c:557
char ext[3]
Definition: mkdosfs.c:358
unsigned int BOOL
Definition: ntddk_ex.h:94
#define DS_SHELLFONT
Definition: winuser.h:381
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define DS_SETFONT
Definition: winuser.h:378
GLsizeiptr size
Definition: glext.h:5919
#define GET_WORD(x)
#define PUT_BLOCK(x, y)
static enum content get_content_type ( LPCOLESTR  name,
CLSID control_id 
)
static

Definition at line 986 of file atl_ax.c.

Referenced by AtlAxCreateControlLicEx().

987 {
988  WCHAR new_urlW[MAX_PATH];
989  DWORD size = MAX_PATH;
990  WCHAR mshtml_prefixW[] = {'m','s','h','t','m','l',':','\0'};
991 
992  if (!name || !name[0])
993  {
994  WARN("name %s\n", wine_dbgstr_w(name));
995  return IsEmpty;
996  }
997 
998  if (CLSIDFromString(name, control_id) == S_OK ||
999  CLSIDFromProgID(name, control_id) == S_OK)
1000  return IsGUID;
1001 
1002  if (PathIsURLW (name) ||
1004  {
1005  *control_id = CLSID_WebBrowser;
1006  return IsURL;
1007  }
1008 
1009  if (!strncmpiW(name, mshtml_prefixW, 7))
1010  {
1011  FIXME("mshtml prefix not implemented\n");
1012  *control_id = CLSID_WebBrowser;
1013  return IsHTML;
1014  }
1015 
1016  return IsUnknown;
1017 }
__wchar_t WCHAR
Definition: xmlstorage.h:180
Definition: atl_ax.c:980
#define WARN(fmt,...)
Definition: debug.h:111
#define strncmpiW(s1, s2, n)
Definition: unicode.h:40
HRESULT WINAPI DECLSPEC_HOTPATCH CLSIDFromProgID(LPCOLESTR progid, LPCLSID clsid)
Definition: compobj.c:2467
DWORD DWORD
Definition: winlogon.h:75
BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
Definition: url.c:2417
#define FIXME(fmt,...)
Definition: debug.h:110
char * wine_dbgstr_w(const wchar_t *wstr)
Definition: CString.cpp:62
Definition: atl_ax.c:982
#define MAX_PATH
Definition: compat.h:26
HRESULT WINAPI UrlApplySchemeW(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut, DWORD dwFlags)
Definition: url.c:1802
#define S_OK
Definition: intsafe.h:59
GLsizeiptr size
Definition: glext.h:5919
#define URL_APPLY_GUESSSCHEME
Definition: shlwapi.h:1203
Definition: name.c:23
HRESULT WINAPI CLSIDFromString(LPCOLESTR idstr, LPCLSID id)
Definition: compobj.c:2203
#define URL_APPLY_GUESSFILE
Definition: shlwapi.h:1202
Definition: atl_ax.c:981
static IOCS* impl_from_IOleClientSite ( IOleClientSite iface)
inlinestatic
static IOCS* impl_from_IOleContainer ( IOleContainer iface)
inlinestatic

Definition at line 266 of file atl_ax.c.

Referenced by OleContainer_AddRef(), OleContainer_EnumObjects(), OleContainer_LockContainer(), OleContainer_ParseDisplayName(), OleContainer_QueryInterface(), and OleContainer_Release().

267 {
268  return CONTAINING_RECORD(iface, IOCS, IOleContainer_iface);
269 }
Definition: atl_ax.c:28
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:259
static IOCS* impl_from_IOleControlSite ( IOleControlSite iface)
inlinestatic

Definition at line 667 of file atl_ax.c.

Referenced by OleControlSite_AddRef(), OleControlSite_QueryInterface(), and OleControlSite_Release().

668 {
669  return CONTAINING_RECORD(iface, IOCS, IOleControlSite_iface);
670 }
Definition: atl_ax.c:28
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:259
static HRESULT IOCS_Attach ( IOCS This,
HWND  hWnd,
IUnknown pUnkControl 
)
static

Definition at line 898 of file atl_ax.c.

Referenced by IOCS_Create().

899 {
900  This->hWnd = hWnd;
901  IUnknown_QueryInterface( pUnkControl, &IID_IOleObject, (void**)&This->control );
902  IOleObject_SetClientSite( This->control, &This->IOleClientSite_iface );
903  SetPropW( hWnd, wine_atl_iocsW, This );
905 
906  return S_OK;
907 }
#define GWLP_WNDPROC
Definition: winuser.h:843
HWND hWnd
Definition: atl_ax.c:36
HWND hWnd
Definition: settings.c:17
uint32_t ULONG_PTR
Definition: typedefs.h:63
static const WCHAR wine_atl_iocsW[]
Definition: atl_ax.c:43
const GUID IID_IOleObject
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2849
BOOL WINAPI SetPropW(_In_ HWND, _In_ LPCWSTR, _In_opt_ HANDLE)
WNDPROC OrigWndProc
Definition: atl_ax.c:39
static LRESULT CALLBACK AtlHost_wndproc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
Definition: atl_ax.c:892
IOleObject * control
Definition: atl_ax.c:37
#define S_OK
Definition: intsafe.h:59
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
#define SetWindowLongPtrW
Definition: winuser.h:5194
static HRESULT IOCS_Create ( HWND  hWnd,
IUnknown pUnkControl,
IUnknown **  container 
)
static

Definition at line 927 of file atl_ax.c.

Referenced by AtlAxAttachControl().

928 {
929  HRESULT hr;
930  IOCS *This;
931 
932  if (!container)
933  return S_OK;
934 
935  *container = NULL;
936  This = HeapAlloc(GetProcessHeap(), 0, sizeof(IOCS));
937 
938  if (!This)
939  return E_OUTOFMEMORY;
940 
942  This->IOleContainer_iface.lpVtbl = &OleContainer_vtbl;
946  This->ref = 1;
947 
948  This->OrigWndProc = NULL;
949  This->hWnd = NULL;
950  This->fWindowless = This->fActive = This->fInPlace = FALSE;
951 
952  hr = IOCS_Attach( This, hWnd, pUnkControl );
953  if ( SUCCEEDED( hr ) )
954  hr = IOCS_Init( This );
955  if ( SUCCEEDED( hr ) )
956  *container = (IUnknown*)&This->IOleClientSite_iface;
957  else
958  {
959  IOCS_Detach( This );
960  HeapFree(GetProcessHeap(), 0, This);
961  }
962 
963  return hr;
964 }
IOleControlSite IOleControlSite_iface
Definition: atl_ax.c:33
Definition: atl_ax.c:28
IOleInPlaceFrame IOleInPlaceFrame_iface
Definition: atl_ax.c:32
LONG ref
Definition: atl_ax.c:35
static const IOleInPlaceFrameVtbl OleInPlaceFrame_vtbl
Definition: atl_ax.c:778
HWND hWnd
Definition: atl_ax.c:36
HWND hWnd
Definition: settings.c:17
static const IOleControlSiteVtbl OleControlSite_vtbl
Definition: atl_ax.c:796
static HRESULT IOCS_Init(IOCS *This)
Definition: atl_ax.c:909
static const IOleInPlaceSiteWindowlessVtbl OleInPlaceSiteWindowless_vtbl
Definition: atl_ax.c:746
static const IOleClientSiteVtbl OleClientSite_vtbl
Definition: atl_ax.c:727
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define FALSE
Definition: types.h:117
smooth NULL
Definition: ftsmooth.c:557
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
LONG HRESULT
Definition: typedefs.h:77
static HRESULT IOCS_Attach(IOCS *This, HWND hWnd, IUnknown *pUnkControl)
Definition: atl_ax.c:898
BOOL fWindowless
Definition: atl_ax.c:40
WNDPROC OrigWndProc
Definition: atl_ax.c:39
BOOL fInPlace
Definition: atl_ax.c:40
#define S_OK
Definition: intsafe.h:59
IOleInPlaceSiteWindowless IOleInPlaceSiteWindowless_iface
Definition: atl_ax.c:31
static const IOleContainerVtbl OleContainer_vtbl
Definition: atl_ax.c:738
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static HRESULT IOCS_Detach(IOCS *This)
Definition: atl_ax.c:135
IOleContainer IOleContainer_iface
Definition: atl_ax.c:30
BOOL fActive
Definition: atl_ax.c:40
#define HeapFree(x, y, z)
Definition: compat.h:394
#define SUCCEEDED(hr)
Definition: intsafe.h:57
static HRESULT IOCS_Detach ( IOCS This)
static

Definition at line 135 of file atl_ax.c.

Referenced by IOCS_Create(), IOCS_OnWndProc(), and OleClientSite_Release().

136 {
137  if ( This->hWnd )
138  {
141  This->hWnd = NULL;
142  }
143  if ( This->control )
144  {
145  IOleObject *control = This->control;
146 
147  This->control = NULL;
148  IOleObject_Close( control, OLECLOSE_NOSAVE );
149  IOleObject_SetClientSite( control, NULL );
150  IOleObject_Release( control );
151  }
152  return S_OK;
153 }
#define GWLP_WNDPROC
Definition: winuser.h:843
HWND hWnd
Definition: atl_ax.c:36
HANDLE WINAPI RemovePropW(_In_ HWND, _In_ LPCWSTR)
uint32_t ULONG_PTR
Definition: typedefs.h:63
static const WCHAR wine_atl_iocsW[]
Definition: atl_ax.c:43
smooth NULL
Definition: ftsmooth.c:557
WNDPROC OrigWndProc
Definition: atl_ax.c:39
IOleObject * control
Definition: atl_ax.c:37
#define S_OK
Definition: intsafe.h:59
#define SetWindowLongPtrW
Definition: winuser.h:5194
static HRESULT IOCS_Init ( IOCS This)
static

Definition at line 909 of file atl_ax.c.

Referenced by IOCS_Create().

910 {
911  RECT rect;
912  static const WCHAR AXWIN[] = {'A','X','W','I','N',0};
913 
914  IOleObject_SetHostNames( This->control, AXWIN, AXWIN );
915 
916  GetClientRect( This->hWnd, &rect );
917  IOCS_OnSize( This, &rect );
918  IOleObject_DoVerb( This->control, OLEIVERB_INPLACEACTIVATE, NULL, &This->IOleClientSite_iface,
919  0, This->hWnd, &rect );
920 
921  return S_OK;
922 }
HWND hWnd
Definition: atl_ax.c:36
__wchar_t WCHAR
Definition: xmlstorage.h:180
& rect
Definition: startmenu.cpp:1413
smooth NULL
Definition: ftsmooth.c:557
static void IOCS_OnSize(IOCS *This, LPCRECT rect)
Definition: atl_ax.c:810
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
IOleObject * control
Definition: atl_ax.c:37
#define S_OK
Definition: intsafe.h:59
#define OLEIVERB_INPLACEACTIVATE
Definition: ole2.h:43
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static void IOCS_OnDraw ( IOCS This)
static

Definition at line 844 of file atl_ax.c.

Referenced by IOCS_OnWndProc().

845 {
846  IViewObject *view;
847 
848  if ( !This->control || !This->fWindowless )
849  return;
850 
851  if ( SUCCEEDED( IOleObject_QueryInterface( This->control, &IID_IViewObject, (void**)&view ) ) )
852  {
853  HDC dc = GetDC( This->hWnd );
854  RECTL rect;
855 
856  rect.left = This->size.left; rect.top = This->size.top;
857  rect.bottom = This->size.bottom; rect.right = This->size.right;
858 
859  IViewObject_Draw( view, DVASPECT_CONTENT, ~0, NULL, NULL, 0, dc, &rect, &rect, NULL, 0 );
860  IViewObject_Release( view );
861  ReleaseDC( This->hWnd, dc );
862  }
863 }
#define HDC
Definition: msvc.h:22
const GUID IID_IViewObject
HDC WINAPI GetDC(_In_opt_ HWND)
HWND hWnd
Definition: atl_ax.c:36
LONG top
Definition: windef.h:320
long bottom
Definition: polytest.cpp:53
HDC dc
Definition: cylfrac.c:34
LONG left
Definition: windef.h:319
LONG right
Definition: windef.h:321
& rect
Definition: startmenu.cpp:1413
long right
Definition: polytest.cpp:53
long top
Definition: polytest.cpp:53
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
smooth NULL
Definition: ftsmooth.c:557
long left
Definition: polytest.cpp:53
RECT size
Definition: atl_ax.c:38
BOOL fWindowless
Definition: atl_ax.c:40
IOleObject * control
Definition: atl_ax.c:37
static IOleDocumentView * view
Definition: activex.c:1768
LONG bottom
Definition: windef.h:322
#define SUCCEEDED(hr)
Definition: intsafe.h:57
static void IOCS_OnShow ( IOCS This,
BOOL  fShow 
)
static

Definition at line 836 of file atl_ax.c.

Referenced by IOCS_OnWndProc().

837 {
838  if (!This->control || This->fActive || !fShow )
839  return;
840 
841  This->fActive = TRUE;
842 }
#define TRUE
Definition: types.h:120
INT BOOL fShow
Definition: msvc.h:54
IOleObject * control
Definition: atl_ax.c:37
BOOL fActive
Definition: atl_ax.c:40
static void IOCS_OnSize ( IOCS This,
LPCRECT  rect 
)
static

Definition at line 810 of file atl_ax.c.

Referenced by IOCS_Init(), and IOCS_OnWndProc().

811 {
812  SIZEL inPix, inHi;
813 
814  This->size = *rect;
815 
816  if ( !This->control )
817  return;
818 
819  inPix.cx = rect->right - rect->left;
820  inPix.cy = rect->bottom - rect->top;
821  AtlPixelToHiMetric( &inPix, &inHi );
822  IOleObject_SetExtent( This->control, DVASPECT_CONTENT, &inHi );
823 
824  if ( This->fInPlace )
825  {
826  IOleInPlaceObject *wl;
827 
828  if ( SUCCEEDED( IOleObject_QueryInterface( This->control, &IID_IOleInPlaceObject, (void**)&wl ) ) )
829  {
830  IOleInPlaceObject_SetObjectRects( wl, rect, rect );
831  IOleInPlaceObject_Release( wl );
832  }
833  }
834 }
LONG top
Definition: windef.h:320
LONG left
Definition: windef.h:319
LONG right
Definition: windef.h:321
& rect
Definition: startmenu.cpp:1413
LONG cx
Definition: windef.h:347
const GUID IID_IOleInPlaceObject
RECT size
Definition: atl_ax.c:38
BOOL fInPlace
Definition: atl_ax.c:40
void WINAPI AtlPixelToHiMetric(const SIZEL *lpPix, SIZEL *lpHiMetric)
Definition: atl.c:166
IOleObject * control
Definition: atl_ax.c:37
LONG bottom
Definition: windef.h:322
LONG cy
Definition: windef.h:348
#define SUCCEEDED(hr)
Definition: intsafe.h:57
static LRESULT IOCS_OnWndProc ( IOCS This,
HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 865 of file atl_ax.c.

Referenced by AtlHost_wndproc().

866 {
867  WNDPROC OrigWndProc = This->OrigWndProc;
868 
869  switch( uMsg )
870  {
871  case WM_DESTROY:
872  IOCS_Detach( This );
873  break;
874  case WM_SIZE:
875  {
876  RECT r;
877  SetRect(&r, 0, 0, LOWORD(lParam), HIWORD(lParam));
878  IOCS_OnSize( This, &r );
879  }
880  break;
881  case WM_SHOWWINDOW:
882  IOCS_OnShow( This, (BOOL) wParam );
883  break;
884  case WM_PAINT:
885  IOCS_OnDraw( This );
886  break;
887  }
888 
889  return CallWindowProcW( OrigWndProc, hWnd, uMsg, wParam, lParam );
890 }
static void IOCS_OnDraw(IOCS *This)
Definition: atl_ax.c:844
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
HWND hWnd
Definition: settings.c:17
UINT uMsg
Definition: precomp.h:53
#define WM_SHOWWINDOW
Definition: winuser.h:1600
static void IOCS_OnSize(IOCS *This, LPCRECT rect)
Definition: atl_ax.c:810
#define WM_DESTROY
Definition: winuser.h:1581
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2849
unsigned int BOOL
Definition: ntddk_ex.h:94
static void IOCS_OnShow(IOCS *This, BOOL fShow)
Definition: atl_ax.c:836
#define WM_SIZE
Definition: winuser.h:1583
UINT WPARAM wParam
Definition: precomp.h:53
#define WM_PAINT
Definition: winuser.h:1592
WNDPROC OrigWndProc
Definition: atl_ax.c:39
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
UINT WPARAM LPARAM lParam
Definition: precomp.h:53
LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define HIWORD(l)
Definition: typedefs.h:246
static HRESULT IOCS_Detach(IOCS *This)
Definition: atl_ax.c:135
#define LOWORD(l)
Definition: pedump.c:82
static ULONG WINAPI OleClientSite_AddRef ( IOleClientSite iface)
static

Definition at line 197 of file atl_ax.c.

198 {
199  IOCS *This = impl_from_IOleClientSite(iface);
200  ULONG ref = InterlockedIncrement(&This->ref);
201  TRACE("(%p)->(%d)\n", This, ref);
202  return ref;
203 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: atl_ax.c:130
LONG ref
Definition: atl_ax.c:35
Definition: send.c:47
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53
unsigned int ULONG
Definition: retypes.h:1
static HRESULT WINAPI OleClientSite_GetContainer ( IOleClientSite iface,
IOleContainer **  container 
)
static

Definition at line 236 of file atl_ax.c.

237 {
238  IOCS *This = impl_from_IOleClientSite(iface);
239  TRACE("(%p, %p)\n", This, container);
240  return IOleClientSite_QueryInterface(iface, &IID_IOleContainer, (void**)container);
241 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: atl_ax.c:130
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IOleContainer
static HRESULT WINAPI OleClientSite_GetMoniker ( IOleClientSite iface,
DWORD  dwAssign,
DWORD  dwWhichMoniker,
IMoniker **  ppmk 
)
static

Definition at line 228 of file atl_ax.c.

229 {
230  IOCS *This = impl_from_IOleClientSite(iface);
231 
232  FIXME( "(%p, 0x%x, 0x%x, %p)\n", This, dwAssign, dwWhichMoniker, ppmk );
233  return E_NOTIMPL;
234 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: atl_ax.c:130
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleClientSite_OnShowWindow ( IOleClientSite iface,
BOOL  fShow 
)
static

Definition at line 250 of file atl_ax.c.

251 {
252  IOCS *This = impl_from_IOleClientSite(iface);
253  FIXME( "(%p, %s) - stub\n", This, fShow ? "TRUE" : "FALSE" );
254  return E_NOTIMPL;
255 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: atl_ax.c:130
INT BOOL fShow
Definition: msvc.h:54
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleClientSite_QueryInterface ( IOleClientSite iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 155 of file atl_ax.c.

156 {
157  IOCS *This = impl_from_IOleClientSite(iface);
158 
159  TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
160 
161  *ppv = NULL;
162 
163  if (IsEqualIID(&IID_IUnknown, riid) ||
165  {
166  *ppv = iface;
167  }
168  else if (IsEqualIID(&IID_IOleContainer, riid))
169  {
170  *ppv = &This->IOleContainer_iface;
171  }
172  else if (IsEqualIID(&IID_IOleInPlaceSite, riid) ||
173  IsEqualIID(&IID_IOleInPlaceSiteEx, riid) ||
174  IsEqualIID(&IID_IOleInPlaceSiteWindowless, riid))
175  {
176  *ppv = &This->IOleInPlaceSiteWindowless_iface;
177  }
179  {
180  *ppv = &This->IOleInPlaceFrame_iface;
181  }
182  else if (IsEqualIID(&IID_IOleControlSite, riid))
183  {
184  *ppv = &This->IOleControlSite_iface;
185  }
186 
187  if (*ppv)
188  {
189  IOleClientSite_AddRef(iface);
190  return S_OK;
191  }
192 
193  WARN("unsupported interface %s\n", debugstr_guid(riid));
194  return E_NOINTERFACE;
195 }
IOleControlSite IOleControlSite_iface
Definition: atl_ax.c:33
const GUID IID_IOleInPlaceFrame
Definition: atl_ax.c:28
static IOCS * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: atl_ax.c:130
IOleInPlaceFrame IOleInPlaceFrame_iface
Definition: atl_ax.c:32
#define E_NOINTERFACE
Definition: winerror.h:2364
const GUID IID_IUnknown
REFIID riid
Definition: precomp.h:44
const GUID IID_IOleInPlaceSite
const GUID IID_IOleClientSite
#define WARN(fmt,...)
Definition: debug.h:111
const GUID IID_IOleControlSite
smooth NULL
Definition: ftsmooth.c:557
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IOleContainer
#define S_OK
Definition: intsafe.h:59
IOleInPlaceSiteWindowless IOleInPlaceSiteWindowless_iface
Definition: atl_ax.c:31
IOleContainer IOleContainer_iface
Definition: atl_ax.c:30
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:90
static ULONG WINAPI OleClientSite_Release ( IOleClientSite iface)
static

Definition at line 205 of file atl_ax.c.

206 {
207  IOCS *This = impl_from_IOleClientSite(iface);
208  ULONG ref = InterlockedDecrement(&This->ref);
209 
210  TRACE("(%p)->(%d)\n", This, ref);
211 
212  if (!ref)
213  {
214  IOCS_Detach( This );
215  HeapFree( GetProcessHeap(), 0, This );
216  }
217 
218  return ref;
219 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: atl_ax.c:130
LONG ref
Definition: atl_ax.c:35
Definition: send.c:47
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:395
#define InterlockedDecrement
Definition: armddk.h:52
unsigned int ULONG
Definition: retypes.h:1
static HRESULT IOCS_Detach(IOCS *This)
Definition: atl_ax.c:135
#define HeapFree(x, y, z)
Definition: compat.h:394
static HRESULT WINAPI OleClientSite_RequestNewObjectLayout ( IOleClientSite iface)
static

Definition at line 257 of file atl_ax.c.

258 {
259  IOCS *This = impl_from_IOleClientSite(iface);
260  FIXME( "(%p) - stub\n", This );
261  return E_NOTIMPL;
262 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: atl_ax.c:130
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleClientSite_SaveObject ( IOleClientSite iface)
static

Definition at line 221 of file atl_ax.c.

222 {
223  IOCS *This = impl_from_IOleClientSite(iface);
224  FIXME( "(%p) - stub\n", This );
225  return E_NOTIMPL;
226 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: atl_ax.c:130
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleClientSite_ShowObject ( IOleClientSite iface)
static

Definition at line 243 of file atl_ax.c.

244 {
245  IOCS *This = impl_from_IOleClientSite(iface);
246  FIXME( "(%p) - stub\n", This );
247  return S_OK;
248 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleClientSite(IOleClientSite *iface)
Definition: atl_ax.c:130
#define FIXME(fmt,...)
Definition: debug.h:110
#define S_OK
Definition: intsafe.h:59
static ULONG WINAPI OleContainer_AddRef ( IOleContainer iface)
static

Definition at line 277 of file atl_ax.c.

278 {
279  IOCS *This = impl_from_IOleContainer(iface);
280  return IOleClientSite_AddRef(&This->IOleClientSite_iface);
281 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleContainer(IOleContainer *iface)
Definition: atl_ax.c:266
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static HRESULT WINAPI OleContainer_EnumObjects ( IOleContainer iface,
DWORD  grfFlags,
IEnumUnknown **  ppenum 
)
static

Definition at line 297 of file atl_ax.c.

298 {
299  IOCS *This = impl_from_IOleContainer(iface);
300  FIXME( "(%p, %u, %p) - stub\n", This, grfFlags, ppenum );
301  return E_NOTIMPL;
302 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleContainer(IOleContainer *iface)
Definition: atl_ax.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleContainer_LockContainer ( IOleContainer iface,
BOOL  fLock 
)
static

Definition at line 304 of file atl_ax.c.

305 {
306  IOCS *This = impl_from_IOleContainer(iface);
307  FIXME( "(%p, %s) - stub\n", This, fLock?"TRUE":"FALSE" );
308  return E_NOTIMPL;
309 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleContainer(IOleContainer *iface)
Definition: atl_ax.c:266
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleContainer_ParseDisplayName ( IOleContainer iface,
IBindCtx pbc,
LPOLESTR  pszDisplayName,
ULONG pchEaten,
IMoniker **  ppmkOut 
)
static

Definition at line 289 of file atl_ax.c.

291 {
292  IOCS *This = impl_from_IOleContainer(iface);
293  FIXME( "(%p,%p,%s,%p,%p) - stub\n", This, pbc, debugstr_w(pszDisplayName), pchEaten, ppmkOut );
294  return E_NOTIMPL;
295 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleContainer(IOleContainer *iface)
Definition: atl_ax.c:266
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleContainer_QueryInterface ( IOleContainer iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 271 of file atl_ax.c.

272 {
273  IOCS *This = impl_from_IOleContainer(iface);
274  return IOleClientSite_QueryInterface(&This->IOleClientSite_iface, riid, ppv);
275 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleContainer(IOleContainer *iface)
Definition: atl_ax.c:266
REFIID riid
Definition: precomp.h:44
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static ULONG WINAPI OleContainer_Release ( IOleContainer iface)
static

Definition at line 283 of file atl_ax.c.

284 {
285  IOCS *This = impl_from_IOleContainer(iface);
286  return IOleClientSite_Release(&This->IOleClientSite_iface);
287 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleContainer(IOleContainer *iface)
Definition: atl_ax.c:266
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static ULONG WINAPI OleControlSite_AddRef ( IOleControlSite iface)
static

Definition at line 678 of file atl_ax.c.

679 {
680  IOCS *This = impl_from_IOleControlSite(iface);
681  return IOleClientSite_AddRef(&This->IOleClientSite_iface);
682 }
Definition: atl_ax.c:28
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static IOCS * impl_from_IOleControlSite(IOleControlSite *iface)
Definition: atl_ax.c:667
static HRESULT WINAPI OleControlSite_GetExtendedControl ( IOleControlSite This,
IDispatch **  ppDisp 
)
static

Definition at line 700 of file atl_ax.c.

701 {
702  FIXME( "\n" );
703  return E_NOTIMPL;
704 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleControlSite_LockInPlaceActive ( IOleControlSite This,
BOOL  fLock 
)
static

Definition at line 695 of file atl_ax.c.

696 {
697  FIXME( "\n" );
698  return E_NOTIMPL;
699 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleControlSite_OnControlInfoChanged ( IOleControlSite This)
static

Definition at line 690 of file atl_ax.c.

691 {
692  FIXME( "\n" );
693  return E_NOTIMPL;
694 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleControlSite_OnFocus ( IOleControlSite This,
BOOL  fGotFocus 
)
static

Definition at line 715 of file atl_ax.c.

716 {
717  FIXME( "\n" );
718  return E_NOTIMPL;
719 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleControlSite_QueryInterface ( IOleControlSite iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 672 of file atl_ax.c.

673 {
674  IOCS *This = impl_from_IOleControlSite(iface);
675  return IOleClientSite_QueryInterface(&This->IOleClientSite_iface, riid, ppv);
676 }
Definition: atl_ax.c:28
REFIID riid
Definition: precomp.h:44
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static IOCS * impl_from_IOleControlSite(IOleControlSite *iface)
Definition: atl_ax.c:667
static ULONG WINAPI OleControlSite_Release ( IOleControlSite iface)
static

Definition at line 684 of file atl_ax.c.

685 {
686  IOCS *This = impl_from_IOleControlSite(iface);
687  return IOleClientSite_Release(&This->IOleClientSite_iface);
688 }
Definition: atl_ax.c:28
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static IOCS * impl_from_IOleControlSite(IOleControlSite *iface)
Definition: atl_ax.c:667
static HRESULT WINAPI OleControlSite_ShowPropertyFrame ( IOleControlSite This)
static

Definition at line 720 of file atl_ax.c.

721 {
722  FIXME( "\n" );
723  return E_NOTIMPL;
724 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleControlSite_TransformCoords ( IOleControlSite This,
POINTL pPtlHimetric,
POINTF *  pPtfContainer,
DWORD  dwFlags 
)
static

Definition at line 705 of file atl_ax.c.

706 {
707  FIXME( "\n" );
708  return E_NOTIMPL;
709 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleControlSite_TranslateAccelerator ( IOleControlSite This,
MSG pMsg,
DWORD  grfModifiers 
)
static

Definition at line 710 of file atl_ax.c.

711 {
712  FIXME( "\n" );
713  return E_NOTIMPL;
714 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static ULONG WINAPI OleInPlaceFrame_AddRef ( IOleInPlaceFrame iface)
static

Definition at line 555 of file atl_ax.c.

556 {
557  IOCS *This = impl_from_IOleInPlaceFrame(iface);
558  return IOleClientSite_AddRef(&This->IOleClientSite_iface);
559 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static HRESULT WINAPI OleInPlaceFrame_ContextSensitiveHelp ( IOleInPlaceFrame iface,
BOOL  fEnterMode 
)
static

Definition at line 577 of file atl_ax.c.

578 {
579  IOCS *This = impl_from_IOleInPlaceFrame(iface);
580 
581  FIXME( "(%p,%d) - stub\n", This, fEnterMode );
582  return E_NOTIMPL;
583 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceFrame_EnableModeless ( IOleInPlaceFrame iface,
BOOL  fEnable 
)
static

Definition at line 649 of file atl_ax.c.

650 {
651  IOCS *This = impl_from_IOleInPlaceFrame(iface);
652 
653  FIXME( "(%p, %d) - stub\n", This, fEnable );
654  return E_NOTIMPL;
655 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceFrame_GetBorder ( IOleInPlaceFrame iface,
LPRECT  lprectBorder 
)
static

Definition at line 585 of file atl_ax.c.

586 {
587  IOCS *This = impl_from_IOleInPlaceFrame(iface);
588 
589  FIXME( "(%p,%p) - stub\n", This, lprectBorder );
590  return E_NOTIMPL;
591 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceFrame_GetWindow ( IOleInPlaceFrame iface,
HWND phWnd 
)
static

Definition at line 567 of file atl_ax.c.

568 {
569  IOCS *This = impl_from_IOleInPlaceFrame(iface);
570 
571  TRACE( "(%p,%p)\n", This, phWnd );
572 
573  *phWnd = This->hWnd;
574  return S_OK;
575 }
Definition: atl_ax.c:28
HWND hWnd
Definition: atl_ax.c:36
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static HRESULT WINAPI OleInPlaceFrame_InsertMenus ( IOleInPlaceFrame iface,
HMENU  hmenuShared,
LPOLEMENUGROUPWIDTHS  lpMenuWidths 
)
static

Definition at line 617 of file atl_ax.c.

618 {
619  IOCS *This = impl_from_IOleInPlaceFrame(iface);
620 
621  FIXME( "(%p,%p,%p) - stub\n", This, hmenuShared, lpMenuWidths );
622  return E_NOTIMPL;
623 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceFrame_QueryInterface ( IOleInPlaceFrame iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 549 of file atl_ax.c.

550 {
551  IOCS *This = impl_from_IOleInPlaceFrame(iface);
552  return IOleClientSite_QueryInterface(&This->IOleClientSite_iface, riid, ppv);
553 }
Definition: atl_ax.c:28
REFIID riid
Definition: precomp.h:44
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static ULONG WINAPI OleInPlaceFrame_Release ( IOleInPlaceFrame iface)
static

Definition at line 561 of file atl_ax.c.

562 {
563  IOCS *This = impl_from_IOleInPlaceFrame(iface);
564  return IOleClientSite_Release(&This->IOleClientSite_iface);
565 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static HRESULT WINAPI OleInPlaceFrame_RemoveMenus ( IOleInPlaceFrame iface,
HMENU  hmenuShared 
)
static

Definition at line 633 of file atl_ax.c.

634 {
635  IOCS *This = impl_from_IOleInPlaceFrame(iface);
636 
637  FIXME( "(%p, %p) - stub\n", This, hmenuShared );
638  return E_NOTIMPL;
639 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceFrame_RequestBorderSpace ( IOleInPlaceFrame iface,
LPCBORDERWIDTHS  pborderwidths 
)
static

Definition at line 593 of file atl_ax.c.

594 {
595  IOCS *This = impl_from_IOleInPlaceFrame(iface);
596 
597  FIXME( "(%p,%p) - stub\n", This, pborderwidths );
598  return E_NOTIMPL;
599 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceFrame_SetActiveObject ( IOleInPlaceFrame iface,
IOleInPlaceActiveObject pActiveObject,
LPCOLESTR  pszObjName 
)
static

Definition at line 609 of file atl_ax.c.

610 {
611  IOCS *This = impl_from_IOleInPlaceFrame(iface);
612 
613  FIXME( "(%p,%p,%s) - stub\n", This, pActiveObject, debugstr_w(pszObjName) );
614  return S_OK;
615 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define S_OK
Definition: intsafe.h:59
static HRESULT WINAPI OleInPlaceFrame_SetBorderSpace ( IOleInPlaceFrame iface,
LPCBORDERWIDTHS  pborderwidths 
)
static

Definition at line 601 of file atl_ax.c.

602 {
603  IOCS *This = impl_from_IOleInPlaceFrame(iface);
604 
605  FIXME( "(%p,%p) - stub\n", This, pborderwidths );
606  return E_NOTIMPL;
607 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceFrame_SetMenu ( IOleInPlaceFrame iface,
HMENU  hmenuShared,
HOLEMENU  holemenu,
HWND  hwndActiveObject 
)
static

Definition at line 625 of file atl_ax.c.

626 {
627  IOCS *This = impl_from_IOleInPlaceFrame(iface);
628 
629  FIXME( "(%p,%p,%p,%p) - stub\n", This, hmenuShared, holemenu, hwndActiveObject );
630  return E_NOTIMPL;
631 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceFrame_SetStatusText ( IOleInPlaceFrame iface,
LPCOLESTR  pszStatusText 
)
static

Definition at line 641 of file atl_ax.c.

642 {
643  IOCS *This = impl_from_IOleInPlaceFrame(iface);
644 
645  FIXME( "(%p, %s) - stub\n", This, debugstr_w( pszStatusText ) );
646  return E_NOTIMPL;
647 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceFrame_TranslateAccelerator ( IOleInPlaceFrame iface,
LPMSG  lpmsg,
WORD  wID 
)
static

Definition at line 657 of file atl_ax.c.

658 {
659  IOCS *This = impl_from_IOleInPlaceFrame(iface);
660 
661  FIXME( "(%p, %p, %x) - stub\n", This, lpmsg, wID );
662  return E_NOTIMPL;
663 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceFrame(IOleInPlaceFrame *iface)
Definition: atl_ax.c:544
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static ULONG WINAPI OleInPlaceSiteWindowless_AddRef ( IOleInPlaceSiteWindowless iface)
static

Definition at line 324 of file atl_ax.c.

325 {
327  return IOleClientSite_AddRef(&This->IOleClientSite_iface);
328 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static HRESULT WINAPI OleInPlaceSiteWindowless_AdjustRect ( IOleInPlaceSiteWindowless iface,
LPRECT  prc 
)
static

Definition at line 531 of file atl_ax.c.

532 {
533  FIXME("\n");
534  return E_NOTIMPL;
535 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_CanInPlaceActivate ( IOleInPlaceSiteWindowless iface)
static

Definition at line 352 of file atl_ax.c.

353 {
355  TRACE("(%p)\n", This);
356  return S_OK;
357 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static HRESULT WINAPI OleInPlaceSiteWindowless_CanWindowlessActivate ( IOleInPlaceSiteWindowless iface)
static

Definition at line 481 of file atl_ax.c.

482 {
483  FIXME("\n");
484  return S_OK;
485 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define S_OK
Definition: intsafe.h:59
static HRESULT WINAPI OleInPlaceSiteWindowless_ContextSensitiveHelp ( IOleInPlaceSiteWindowless iface,
BOOL  fEnterMode 
)
static

Definition at line 345 of file atl_ax.c.

346 {
348  FIXME("(%p,%d) - stub\n", This, fEnterMode);
349  return E_NOTIMPL;
350 }
Definition: atl_ax.c:28
#define FIXME(fmt,...)
Definition: debug.h:110
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_DeactivateAndUndo ( IOleInPlaceSiteWindowless iface)
static

Definition at line 441 of file atl_ax.c.

442 {
444  FIXME("(%p) - stub\n", This);
445  return E_NOTIMPL;
446 }
Definition: atl_ax.c:28
#define FIXME(fmt,...)
Definition: debug.h:110
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_DiscardUndoState ( IOleInPlaceSiteWindowless iface)
static

Definition at line 434 of file atl_ax.c.

435 {
437  FIXME("(%p) - stub\n", This);
438  return E_NOTIMPL;
439 }
Definition: atl_ax.c:28
#define FIXME(fmt,...)
Definition: debug.h:110
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_GetCapture ( IOleInPlaceSiteWindowless iface)
static

Definition at line 486 of file atl_ax.c.

487 {
488  FIXME("\n");
489  return E_NOTIMPL;
490 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_GetDC ( IOleInPlaceSiteWindowless iface,
LPCRECT  pRect,
DWORD  grfFlags,
HDC phDC 
)
static

Definition at line 506 of file atl_ax.c.

507 {
508  FIXME("\n");
509  return E_NOTIMPL;
510 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_GetFocus ( IOleInPlaceSiteWindowless iface)
static

Definition at line 496 of file atl_ax.c.

497 {
498  FIXME("\n");
499  return E_NOTIMPL;
500 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_GetWindow ( IOleInPlaceSiteWindowless iface,
HWND phwnd 
)
static

Definition at line 336 of file atl_ax.c.

337 {
339 
340  TRACE("(%p,%p)\n", This, phwnd);
341  *phwnd = This->hWnd;
342  return S_OK;
343 }
Definition: atl_ax.c:28
HWND hWnd
Definition: atl_ax.c:36
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static HRESULT WINAPI OleInPlaceSiteWindowless_GetWindowContext ( IOleInPlaceSiteWindowless iface,
IOleInPlaceFrame **  frame,
IOleInPlaceUIWindow **  ppDoc,
LPRECT  lprcPosRect,
LPRECT  lprcClipRect,
LPOLEINPLACEFRAMEINFO  lpFrameInfo 
)
static

Definition at line 377 of file atl_ax.c.

380 {
382 
383  TRACE("(%p,%p,%p,%p,%p,%p)\n", This, frame, ppDoc, lprcPosRect, lprcClipRect, lpFrameInfo);
384 
385  if ( lprcClipRect )
386  *lprcClipRect = This->size;
387  if ( lprcPosRect )
388  *lprcPosRect = This->size;
389 
390  if ( frame )
391  {
392  *frame = &This->IOleInPlaceFrame_iface;
393  IOleInPlaceFrame_AddRef(*frame);
394  }
395 
396  if ( ppDoc )
397  *ppDoc = NULL;
398 
399  if ( lpFrameInfo )
400  {
401  lpFrameInfo->fMDIApp = FALSE;
402  lpFrameInfo->hwndFrame = This->hWnd;
403  lpFrameInfo->haccel = NULL;
404  lpFrameInfo->cAccelEntries = 0;
405  }
406 
407  return S_OK;
408 }
Definition: atl_ax.c:28
IOleInPlaceFrame IOleInPlaceFrame_iface
Definition: atl_ax.c:32
HWND hWnd
Definition: atl_ax.c:36
#define FALSE
Definition: types.h:117
smooth NULL
Definition: ftsmooth.c:557
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
RECT size
Definition: atl_ax.c:38
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static HRESULT WINAPI OleInPlaceSiteWindowless_InvalidateRect ( IOleInPlaceSiteWindowless iface,
LPCRECT  pRect,
BOOL  fErase 
)
static

Definition at line 516 of file atl_ax.c.

517 {
518  FIXME("\n");
519  return E_NOTIMPL;
520 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_InvalidateRgn ( IOleInPlaceSiteWindowless iface,
HRGN  hRGN,
BOOL  fErase 
)
static

Definition at line 521 of file atl_ax.c.

522 {
523  FIXME("\n");
524  return E_NOTIMPL;
525 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_OnDefWindowMessage ( IOleInPlaceSiteWindowless iface,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam,
LRESULT plResult 
)
static

Definition at line 536 of file atl_ax.c.

537 {
538  FIXME("\n");
539  return E_NOTIMPL;
540 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_OnInPlaceActivate ( IOleInPlaceSiteWindowless iface)
static

Definition at line 359 of file atl_ax.c.

360 {
362 
363  TRACE("(%p)\n", This);
364 
365  This->fInPlace = TRUE;
366  return S_OK;
367 }
Definition: atl_ax.c:28
#define TRUE
Definition: types.h:120
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define TRACE(s)
Definition: solgame.cpp:4
BOOL fInPlace
Definition: atl_ax.c:40
#define S_OK
Definition: intsafe.h:59
static HRESULT WINAPI OleInPlaceSiteWindowless_OnInPlaceActivateEx ( IOleInPlaceSiteWindowless iface,
BOOL pfNoRedraw,
DWORD  dwFlags 
)
static

Definition at line 455 of file atl_ax.c.

456 {
458 
459  TRACE("\n");
460 
461  This->fActive = This->fInPlace = TRUE;
462  if ( dwFlags & ACTIVATE_WINDOWLESS )
463  This->fWindowless = TRUE;
464  return S_OK;
465 }
Definition: atl_ax.c:28
#define TRUE
Definition: types.h:120
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define TRACE(s)
Definition: solgame.cpp:4
BOOL fWindowless
Definition: atl_ax.c:40
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1170
BOOL fInPlace
Definition: atl_ax.c:40
#define S_OK
Definition: intsafe.h:59
BOOL fActive
Definition: atl_ax.c:40
static HRESULT WINAPI OleInPlaceSiteWindowless_OnInPlaceDeactivate ( IOleInPlaceSiteWindowless iface)
static

Definition at line 424 of file atl_ax.c.

425 {
427 
428  TRACE("(%p)\n", This);
429 
430  This->fInPlace = This->fWindowless = FALSE;
431  return S_OK;
432 }
Definition: atl_ax.c:28
#define FALSE
Definition: types.h:117
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define TRACE(s)
Definition: solgame.cpp:4
BOOL fWindowless
Definition: atl_ax.c:40
BOOL fInPlace
Definition: atl_ax.c:40
#define S_OK
Definition: intsafe.h:59
static HRESULT WINAPI OleInPlaceSiteWindowless_OnInPlaceDeactivateEx ( IOleInPlaceSiteWindowless iface,
BOOL  fNoRedraw 
)
static

Definition at line 467 of file atl_ax.c.

468 {
470 
471  TRACE("\n");
472 
473  This->fActive = This->fInPlace = This->fWindowless = FALSE;
474  return S_OK;
475 }
Definition: atl_ax.c:28
#define FALSE
Definition: types.h:117
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define TRACE(s)
Definition: solgame.cpp:4
BOOL fWindowless
Definition: atl_ax.c:40
BOOL fInPlace
Definition: atl_ax.c:40
#define S_OK
Definition: intsafe.h:59
BOOL fActive
Definition: atl_ax.c:40
static HRESULT WINAPI OleInPlaceSiteWindowless_OnPosRectChange ( IOleInPlaceSiteWindowless iface,
LPCRECT  lprcPosRect 
)
static

Definition at line 448 of file atl_ax.c.

449 {
451  FIXME("(%p,%p) - stub\n", This, lprcPosRect);
452  return E_NOTIMPL;
453 }
Definition: atl_ax.c:28
#define FIXME(fmt,...)
Definition: debug.h:110
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_OnUIActivate ( IOleInPlaceSiteWindowless iface)
static

Definition at line 369 of file atl_ax.c.

370 {
372 
373  TRACE("(%p)\n", This);
374 
375  return S_OK;
376 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static HRESULT WINAPI OleInPlaceSiteWindowless_OnUIDeactivate ( IOleInPlaceSiteWindowless iface,
BOOL  fUndoable 
)
static

Definition at line 417 of file atl_ax.c.

418 {
420  FIXME("(%p,%d) - stub\n", This, fUndoable);
421  return E_NOTIMPL;
422 }
Definition: atl_ax.c:28
#define FIXME(fmt,...)
Definition: debug.h:110
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_QueryInterface ( IOleInPlaceSiteWindowless iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 318 of file atl_ax.c.

319 {
321  return IOleClientSite_QueryInterface(&This->IOleClientSite_iface, riid, ppv);
322 }
Definition: atl_ax.c:28
REFIID riid
Definition: precomp.h:44
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static ULONG WINAPI OleInPlaceSiteWindowless_Release ( IOleInPlaceSiteWindowless iface)
static

Definition at line 330 of file atl_ax.c.

331 {
333  return IOleClientSite_Release(&This->IOleClientSite_iface);
334 }
Definition: atl_ax.c:28
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
IOleClientSite IOleClientSite_iface
Definition: atl_ax.c:29
static HRESULT WINAPI OleInPlaceSiteWindowless_ReleaseDC ( IOleInPlaceSiteWindowless iface,
HDC  hDC 
)
static

Definition at line 511 of file atl_ax.c.

512 {
513  FIXME("\n");
514  return E_NOTIMPL;
515 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_RequestUIActivate ( IOleInPlaceSiteWindowless iface)
static

Definition at line 476 of file atl_ax.c.

477 {
478  FIXME("\n");
479  return E_NOTIMPL;
480 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_Scroll ( IOleInPlaceSiteWindowless iface,
SIZE  scrollExtent 
)
static

Definition at line 410 of file atl_ax.c.

411 {
413  FIXME("(%p) - stub\n", This);
414  return E_NOTIMPL;
415 }
Definition: atl_ax.c:28
#define FIXME(fmt,...)
Definition: debug.h:110
static IOCS * impl_from_IOleInPlaceSiteWindowless(IOleInPlaceSiteWindowless *iface)
Definition: atl_ax.c:313
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_ScrollRect ( IOleInPlaceSiteWindowless iface,
INT  dx,
INT  dy,
LPCRECT  pRectScroll,
LPCRECT  pRectClip 
)
static

Definition at line 526 of file atl_ax.c.

527 {
528  FIXME("\n");
529  return E_NOTIMPL;
530 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_SetCapture ( IOleInPlaceSiteWindowless iface,
BOOL  fCapture 
)
static

Definition at line 491 of file atl_ax.c.

492 {
493  FIXME("\n");
494  return E_NOTIMPL;
495 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static HRESULT WINAPI OleInPlaceSiteWindowless_SetFocus ( IOleInPlaceSiteWindowless iface,
BOOL  fFocus 
)
static

Definition at line 501 of file atl_ax.c.

502 {
503  FIXME("\n");
504  return E_NOTIMPL;
505 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

Variable Documentation

const IOleClientSiteVtbl OleClientSite_vtbl
static
Initial value:
= {
}
static HRESULT WINAPI OleClientSite_SaveObject(IOleClientSite *iface)
Definition: atl_ax.c:221
static HRESULT WINAPI OleClientSite_GetContainer(IOleClientSite *iface, IOleContainer **container)
Definition: atl_ax.c:236
static ULONG WINAPI OleClientSite_Release(IOleClientSite *iface)
Definition: atl_ax.c:205
static ULONG WINAPI OleClientSite_AddRef(IOleClientSite *iface)
Definition: atl_ax.c:197
static HRESULT WINAPI OleClientSite_RequestNewObjectLayout(IOleClientSite *iface)
Definition: atl_ax.c:257
static HRESULT WINAPI OleClientSite_ShowObject(IOleClientSite *iface)
Definition: atl_ax.c:243
static HRESULT WINAPI OleClientSite_QueryInterface(IOleClientSite *iface, REFIID riid, void **ppv)
Definition: atl_ax.c:155
static HRESULT WINAPI OleClientSite_GetMoniker(IOleClientSite *iface, DWORD dwAssign, DWORD dwWhichMoniker, IMoniker **ppmk)
Definition: atl_ax.c:228
static HRESULT WINAPI OleClientSite_OnShowWindow(IOleClientSite *iface, BOOL fShow)
Definition: atl_ax.c:250

Definition at line 727 of file atl_ax.c.

Referenced by IOCS_Create().

const IOleContainerVtbl OleContainer_vtbl
static
Initial value:
= {
}
static HRESULT WINAPI OleContainer_ParseDisplayName(IOleContainer *iface, IBindCtx *pbc, LPOLESTR pszDisplayName, ULONG *pchEaten, IMoniker **ppmkOut)
Definition: atl_ax.c:289
static HRESULT WINAPI OleContainer_EnumObjects(IOleContainer *iface, DWORD grfFlags, IEnumUnknown **ppenum)
Definition: atl_ax.c:297
static HRESULT WINAPI OleContainer_QueryInterface(IOleContainer *iface, REFIID riid, void **ppv)
Definition: atl_ax.c:271
static ULONG WINAPI OleContainer_AddRef(IOleContainer *iface)
Definition: atl_ax.c:277
static HRESULT WINAPI OleContainer_LockContainer(IOleContainer *iface, BOOL fLock)
Definition: atl_ax.c:304
static ULONG WINAPI OleContainer_Release(IOleContainer *iface)
Definition: atl_ax.c:283

Definition at line 738 of file atl_ax.c.

Referenced by IOCS_Create().

const IOleControlSiteVtbl OleControlSite_vtbl
static
Initial value:
=
{
}
static ULONG WINAPI OleControlSite_AddRef(IOleControlSite *iface)
Definition: atl_ax.c:678
static ULONG WINAPI OleControlSite_Release(IOleControlSite *iface)
Definition: atl_ax.c:684
static HRESULT WINAPI OleControlSite_GetExtendedControl(IOleControlSite *This, IDispatch **ppDisp)
Definition: atl_ax.c:700
static HRESULT WINAPI OleControlSite_OnFocus(IOleControlSite *This, BOOL fGotFocus)
Definition: atl_ax.c:715
static HRESULT WINAPI OleControlSite_TranslateAccelerator(IOleControlSite *This, MSG *pMsg, DWORD grfModifiers)
Definition: atl_ax.c:710
static HRESULT WINAPI OleControlSite_LockInPlaceActive(IOleControlSite *This, BOOL fLock)
Definition: atl_ax.c:695
static HRESULT WINAPI OleControlSite_ShowPropertyFrame(IOleControlSite *This)
Definition: atl_ax.c:720
static HRESULT WINAPI OleControlSite_QueryInterface(IOleControlSite *iface, REFIID riid, void **ppv)
Definition: atl_ax.c:672
static HRESULT WINAPI OleControlSite_OnControlInfoChanged(IOleControlSite *This)
Definition: atl_ax.c:690
static HRESULT WINAPI OleControlSite_TransformCoords(IOleControlSite *This, POINTL *pPtlHimetric, POINTF *pPtfContainer, DWORD dwFlags)
Definition: atl_ax.c:705

Definition at line 796 of file atl_ax.c.

Referenced by IOCS_Create().

const IOleInPlaceFrameVtbl OleInPlaceFrame_vtbl
static
Initial value:
=
{
}
static HRESULT WINAPI OleInPlaceFrame_SetBorderSpace(IOleInPlaceFrame *iface, LPCBORDERWIDTHS pborderwidths)
Definition: atl_ax.c:601
static HRESULT WINAPI OleInPlaceFrame_RequestBorderSpace(IOleInPlaceFrame *iface, LPCBORDERWIDTHS pborderwidths)
Definition: atl_ax.c:593
static HRESULT WINAPI OleInPlaceFrame_SetStatusText(IOleInPlaceFrame *iface, LPCOLESTR pszStatusText)
Definition: atl_ax.c:641
static HRESULT WINAPI OleInPlaceFrame_TranslateAccelerator(IOleInPlaceFrame *iface, LPMSG lpmsg, WORD wID)
Definition: atl_ax.c:657
static HRESULT WINAPI OleInPlaceFrame_GetBorder(IOleInPlaceFrame *iface, LPRECT lprectBorder)
Definition: atl_ax.c:585
static HRESULT WINAPI OleInPlaceFrame_GetWindow(IOleInPlaceFrame *iface, HWND *phWnd)
Definition: atl_ax.c:567
static HRESULT WINAPI OleInPlaceFrame_SetMenu(IOleInPlaceFrame *iface, HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject)
Definition: atl_ax.c:625
static ULONG WINAPI OleInPlaceFrame_AddRef(IOleInPlaceFrame *iface)
Definition: atl_ax.c:555
static HRESULT WINAPI OleInPlaceFrame_SetActiveObject(IOleInPlaceFrame *iface, IOleInPlaceActiveObject *pActiveObject, LPCOLESTR pszObjName)
Definition: atl_ax.c:609
static HRESULT WINAPI OleInPlaceFrame_InsertMenus(IOleInPlaceFrame *iface, HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths)
Definition: atl_ax.c:617
static HRESULT WINAPI OleInPlaceFrame_ContextSensitiveHelp(IOleInPlaceFrame *iface, BOOL fEnterMode)
Definition: atl_ax.c:577
static ULONG WINAPI OleInPlaceFrame_Release(IOleInPlaceFrame *iface)
Definition: atl_ax.c:561
static HRESULT WINAPI OleInPlaceFrame_RemoveMenus(IOleInPlaceFrame *iface, HMENU hmenuShared)
Definition: atl_ax.c:633
static HRESULT WINAPI OleInPlaceFrame_QueryInterface(IOleInPlaceFrame *iface, REFIID riid, void **ppv)
Definition: atl_ax.c:549
static HRESULT WINAPI OleInPlaceFrame_EnableModeless(IOleInPlaceFrame *iface, BOOL fEnable)
Definition: atl_ax.c:649

Definition at line 778 of file atl_ax.c.

Referenced by IOCS_Create().

const IOleInPlaceSiteWindowlessVtbl OleInPlaceSiteWindowless_vtbl
static

Definition at line 746 of file atl_ax.c.

Referenced by IOCS_Create().

const WCHAR wine_atl_iocsW[] = {'_','_','W','I','N','E','_','A','T','L','_','I','O','C','S','\0'}
static

Definition at line 43 of file atl_ax.c.

Referenced by AtlAxGetControl(), AtlAxGetHost(), AtlHost_wndproc(), IOCS_Attach(), and IOCS_Detach().