Software FX Posted August 12, 1999 Report Share Posted August 12, 1999 class CCfxEvents : public ICfxEvents { private: ULONG m_dwRef; public: CCfxEvents() { m_dwRef = 1; } STDMETHOD(QueryInterface)(REFIID riid, LPVOID FAR* ppvObj) if (IsEqualGUID(riid,IID_ICfxEvents)) { *ppvObj = (LPVOID) (ICfxEvents *) this; m_dwRef++; return S_OK; } if (IsEqualGUID(riid,IID_IUnknown)) { *ppvObj = (LPVOID) (IUnknown *) this; m_dwRef++; return S_OK; } return E_NOINTERFACE ; } STDMETHOD_(ULONG, AddRef)() { return ++m_dwRef; }; STDMETHOD_(ULONG, Release)() { if (!--m_dwRef) delete this; return m_dwRef; } // Mouse STDMETHOD(Fire_LButtonDblClk)(THIS_ int x,int y,long nSerie,long nPoint) {return S_OK;} STDMETHOD(Fire_LButtonDown)(THIS_ int x,int y) {return S_OK;} STDMETHOD(Fire_LButtonUp)(THIS_ int x,int y) {return S_OK;} STDMETHOD(Fire_RButtonDown)(THIS_ int x,int y,long nSerie,long nPoint) {return S_OK;} STDMETHOD(Fire_RButtonUp)(THIS_ int x,int y) {return S_OK;} STDMETHOD(Fire_RButtonDblClk)(THIS_ int x,int y) {return S_OK;} STDMETHOD(Fire_MouseMoving)(THIS_ int x,int y) {return S_OK;} // Paint STDMETHOD(Fire_PrePaint)(THIS_ int w,int h) {return S_OK;} STDMETHOD(Fire_PostPaint)(THIS_ int w,int h) {return S_OK;} STDMETHOD(Fire_PaintMarker)(THIS_ int x,int y,long nSerie,long nPoint) {return S_OK;} STDMETHOD(Fire_PrePaintMarker)(THIS_ long nSerie,long nPoint) {return S_OK;} STDMETHOD(Fire_GetAxisLabel)(THIS_ int nAxis) {return S_OK;} STDMETHOD(Fire_GetPointLabel)(THIS_ long nSerie,long nPoint) {return S_OK;} STDMETHOD(Fire_GetTip)(THIS_ short nHit, long nSerie,long nPoint) {return S_OK;} // Changes notifications STDMETHOD(Fire_ChangeType)(THIS_ int nType) {return S_OK;} STDMETHOD(Fire_ChangeFont)(THIS_ int nIndex) {return S_OK;} STDMETHOD(Fire_ChangeValue)(THIS_ double dValue,long nSerie,long nPoint) {return S_OK;} STDMETHOD(Fire_ChangeString)(THIS_ int nType,long nIndex) {return S_OK;} STDMETHOD(Fire_ChangeColor)(THIS_ int nType,int nIndex,DWORD rgbNew) {return S_OK;} STDMETHOD(Fire_ChangePattern)(THIS_ int nType,int nIndex) {return S_OK;} STDMETHOD(Fire_ChangePalette)(THIS_ int nIndex) {return S_OK;} STDMETHOD(Fire_ReadTemplate)(THIS) {return S_OK;} STDMETHOD(Fire_ReadFile)(THIS) {return S_OK;} // Commands STDMETHOD(Fire_ShowToolBar)(THIS_ int nType) {return S_OK;} STDMETHOD(Fire_InternalCommand)(THIS_ USHORT wCmd) {return S_OK;} STDMETHOD(Fire_UserCommand)(THIS_ WPARAM wParam,LPARAM lParam) {return S_OK;} STDMETHOD(Fire_Menu)(THIS_ USHORT wCmd,long nSerie,long nPoint) {return S_OK;} STDMETHOD(Fire_GotFocus)(THIS) {return S_OK;} STDMETHOD(Fire_LostFocus)(THIS) {return S_OK;} STDMETHOD(Fire_UserScroll)(THIS_ USHORT nCode,int nPos) {return S_OK;} STDMETHOD(Fire_Destroy)(THIS) {return S_OK;} }; Frank SFX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.