IOIPF.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- //**********************************************************************
- // File name: IOIPF.H
- //
- // Definition of COleInPlaceFrame
- //
- // Copyright (c) 1992 - 1997 Microsoft Corporation. All rights reserved.
- //**********************************************************************
- #if !defined( _IOIPF_H_ )
- #define _IOIPF_H_
- class CSimpleApp;
- interface COleInPlaceFrame : public IOleInPlaceFrame
- {
- int m_nCount;
- CSimpleApp FAR * m_pApp;
- COleInPlaceFrame(CSimpleApp FAR * pApp) {
- OutputDebugString("In IOIPF's constructorrn");
- m_pApp = pApp;
- m_nCount = 0;
- };
- ~COleInPlaceFrame() {
- OutputDebugString("In IOIPFS's destructorrn");
- assert(m_nCount == 0);
- };
- STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppv);
- STDMETHODIMP_(ULONG) AddRef ();
- STDMETHODIMP_(ULONG) Release ();
- STDMETHODIMP GetWindow (HWND FAR* lphwnd);
- STDMETHODIMP ContextSensitiveHelp (BOOL fEnterMode);
- // *** IOleInPlaceUIWindow methods ***
- STDMETHODIMP GetBorder (LPRECT lprectBorder);
- STDMETHODIMP RequestBorderSpace (LPCBORDERWIDTHS lpborderwidths);
- STDMETHODIMP SetBorderSpace (LPCBORDERWIDTHS lpborderwidths);
- //@@WTK WIN32, UNICODE
- //STDMETHODIMP SetActiveObject (LPOLEINPLACEACTIVEOBJECT lpActiveObject,LPCSTR lpszObjName);
- STDMETHODIMP SetActiveObject (LPOLEINPLACEACTIVEOBJECT lpActiveObject,LPCOLESTR lpszObjName);
- // *** IOleInPlaceFrame methods ***
- STDMETHODIMP InsertMenus (HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths);
- STDMETHODIMP SetMenu (HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject);
- STDMETHODIMP RemoveMenus (HMENU hmenuShared);
- //@@WTK WIN32, UNICODE
- //STDMETHODIMP SetStatusText (LPCSTR lpszStatusText);
- STDMETHODIMP SetStatusText (LPCOLESTR lpszStatusText);
- STDMETHODIMP EnableModeless (BOOL fEnable);
- STDMETHODIMP TranslateAccelerator (LPMSG lpmsg, WORD wID);
- };
- #endif