mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.5 KiB
60 lines
1.5 KiB
#ifndef __IOIPF_HPP__
|
|
#define __IOIPF_HPP__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class COleInPlaceFrame : public IOleInPlaceFrame
|
|
{
|
|
protected:
|
|
DWORD _dwRef; // Reference count
|
|
LPUNKNOWN _pUnkOuter; // Aggregator Unknown.
|
|
|
|
public: // ctor and dtor
|
|
COleInPlaceFrame(LPUNKNOWN);
|
|
~COleInPlaceFrame(void);
|
|
|
|
public: // OLE Interface methods
|
|
|
|
// IUnknown methods
|
|
STDMETHOD (QueryInterface)(REFIID riid, LPVOID *ppvObj);
|
|
STDMETHOD_(ULONG,AddRef)();
|
|
STDMETHOD_(ULONG,Release)();
|
|
|
|
// IOleWindow methods
|
|
STDMETHOD (GetWindow)(HWND *pHwnd);
|
|
STDMETHOD (ContextSensitiveHelp)(BOOL fEnterMode);
|
|
|
|
// IOleInPlaceUIWindow methods.
|
|
STDMETHOD (GetBorder)(LPRECT lprectBorder);
|
|
STDMETHOD (RequestBorderSpace)(LPCBORDERWIDTHS lpborderwidths);
|
|
STDMETHOD (SetBorderSpace)(LPCBORDERWIDTHS lpborderwidths);
|
|
STDMETHOD (SetActiveObject)(IOleInPlaceActiveObject * pActiveObject,
|
|
LPCOLESTR lpszObjName);
|
|
|
|
|
|
// IOleInPlaceFrame methods
|
|
STDMETHOD (InsertMenus)(HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths);
|
|
STDMETHOD (SetMenu)(HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject);
|
|
STDMETHOD (RemoveMenus)(HMENU hmenuShared);
|
|
STDMETHOD (SetStatusText)(LPCOLESTR pszStatusText);
|
|
STDMETHOD (EnableModeless)(BOOL fEnable);
|
|
STDMETHOD (TranslateAccelerator)(LPMSG lpmsg, WORD wID);
|
|
|
|
public: // Public methods
|
|
DWORD GetRef() {return _dwRef;}
|
|
};
|
|
|
|
typedef COleInPlaceFrame * LPCOLEINPLACEFRAME;
|
|
DECLARE_STANDARD_TYPES(COleInPlaceFrame);
|
|
#endif // __cplusplus
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // __IOIPF_HPP__
|
|
|
|
|