22#ifndef __FlashSite_H__
23#define __FlashSite_H__
27#import "../redist/bin/Flash.ocx" named_guids
30#define max(a,b) (((a) > (b)) ? (a) : (b))
33#define min(a,b) (((a) < (b)) ? (a) : (b))
39class FlashSite :
public IOleInPlaceSiteWindowless,
public IOleClientSite
72 if(riid == IID_IUnknown)
74 *ppv = (IUnknown*)(IOleWindow*)
this;
78 else if(riid == IID_IOleWindow)
80 *ppv = (IOleWindow*)
this;
84 else if(riid == IID_IOleInPlaceSite)
86 *ppv = (IOleInPlaceSite*)
this;
90 else if(riid == IID_IOleInPlaceSiteEx)
92 *ppv = (IOleInPlaceSiteEx*)
this;
96 else if(riid == IID_IOleInPlaceSiteWindowless)
98 *ppv = (IOleInPlaceSiteWindowless*)
this;
102 else if(riid == IID_IOleClientSite)
104 *ppv = (IOleClientSite*)
this;
108 else if(riid == __uuidof(ShockwaveFlashObjects::_IShockwaveFlashEvents))
110 *ppv = (ShockwaveFlashObjects::_IShockwaveFlashEvents*)
this;
142 virtual HRESULT STDMETHODCALLTYPE
GetMoniker(DWORD dwAssign, DWORD dwWhichMoniker, IMoniker** ppmk)
148 virtual HRESULT STDMETHODCALLTYPE
GetContainer(IOleContainer ** theContainerP)
150 return E_NOINTERFACE;
174 HRESULT STDMETHODCALLTYPE
GetWindow(HWND __RPC_FAR* theWnndow)
200 HRESULT STDMETHODCALLTYPE
GetWindowContext(IOleInPlaceFrame __RPC_FAR *__RPC_FAR *ppFrame, IOleInPlaceUIWindow __RPC_FAR *__RPC_FAR *ppDoc,
201 LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo)
210 *lprcClipRect = rect;
216 lpFrameInfo->fMDIApp = FALSE;
217 lpFrameInfo->hwndFrame = 0;
218 lpFrameInfo->haccel = 0;
219 lpFrameInfo->cAccelEntries = 0;
224 HRESULT STDMETHODCALLTYPE
Scroll(SIZE scrollExtant)
304 HRESULT STDMETHODCALLTYPE
GetDC(LPCRECT pRect, DWORD grfFlags, HDC __RPC_FAR *phDC)
356 HRESULT STDMETHODCALLTYPE
ScrollRect(INT dx, INT dy, LPCRECT pRectScroll, LPCRECT pRectClip)
virtual void invalidateTotally()=0
HRESULT STDMETHODCALLTYPE InvalidateRect(LPCRECT pRect, BOOL fErase)
virtual HRESULT STDMETHODCALLTYPE GetContainer(IOleContainer **theContainerP)
HRESULT STDMETHODCALLTYPE OnUIDeactivate(BOOL fUndoable)
HRESULT STDMETHODCALLTYPE OnInPlaceDeactivateEx(BOOL fNoRedraw)
HRESULT STDMETHODCALLTYPE ContextSensitiveHelp(BOOL fEnterMode)
virtual HRESULT STDMETHODCALLTYPE OnShowWindow(BOOL)
HRESULT STDMETHODCALLTYPE DiscardUndoState(void)
HRESULT STDMETHODCALLTYPE InvalidateRgn(HRGN hRGN, BOOL fErase)
virtual HRESULT STDMETHODCALLTYPE RequestNewObjectLayout(void)
HRESULT STDMETHODCALLTYPE SetCapture(BOOL fCapture)
HRESULT STDMETHODCALLTYPE GetFocus(void)
HRESULT STDMETHODCALLTYPE DeactivateAndUndo(void)
HRESULT STDMETHODCALLTYPE ReleaseDC(HDC hDC)
HRESULT STDMETHODCALLTYPE CanWindowlessActivate(void)
ULONG STDMETHODCALLTYPE AddRef()
HRESULT STDMETHODCALLTYPE GetCapture(void)
HRESULT STDMETHODCALLTYPE GetWindow(HWND __RPC_FAR *theWnndow)
HRESULT STDMETHODCALLTYPE OnInPlaceActivate(void)
virtual HRESULT STDMETHODCALLTYPE ShowObject(void)
HRESULT STDMETHODCALLTYPE RequestUIActivate(void)
virtual HRESULT STDMETHODCALLTYPE SaveObject(void)
HRESULT STDMETHODCALLTYPE GetWindowContext(IOleInPlaceFrame __RPC_FAR *__RPC_FAR *ppFrame, IOleInPlaceUIWindow __RPC_FAR *__RPC_FAR *ppDoc, LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo)
HRESULT STDMETHODCALLTYPE OnDefWindowMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT __RPC_FAR *plResult)
HRESULT STDMETHODCALLTYPE SetFocus(BOOL fFocus)
HRESULT STDMETHODCALLTYPE OnInPlaceDeactivate(void)
HRESULT STDMETHODCALLTYPE CanInPlaceActivate(void)
HRESULT STDMETHODCALLTYPE GetDC(LPCRECT pRect, DWORD grfFlags, HDC __RPC_FAR *phDC)
HRESULT STDMETHODCALLTYPE OnUIActivate(void)
HRESULT STDMETHODCALLTYPE OnPosRectChange(LPCRECT lprcPosRect)
ULONG STDMETHODCALLTYPE Release()
virtual HRESULT STDMETHODCALLTYPE GetMoniker(DWORD dwAssign, DWORD dwWhichMoniker, IMoniker **ppmk)
HRESULT STDMETHODCALLTYPE Scroll(SIZE scrollExtant)
HRESULT STDMETHODCALLTYPE AdjustRect(LPRECT prc)
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, LPVOID *ppv)
HRESULT STDMETHODCALLTYPE OnInPlaceActivateEx(BOOL __RPC_FAR *pfNoRedraw, DWORD dwFlags)
HRESULT STDMETHODCALLTYPE ScrollRect(INT dx, INT dy, LPCRECT pRectScroll, LPCRECT pRectClip)
void Init(IFlashControl *owner, HWND hwnd)