COMMANDS.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  1. // Commands.h : header file
  2. //
  3. #if !defined(AFX_COMMANDS_H__1433431E_B34A_11D0_A217_244106C10000__INCLUDED_)
  4. #define AFX_COMMANDS_H__1433431E_B34A_11D0_A217_244106C10000__INCLUDED_
  5. #include "ReplAllTypes.h"
  6. class CCommands : 
  7. public CComDualImpl<ICommands, &IID_ICommands, &LIBID_ReplAll>, 
  8. public CComObjectRoot,
  9. public CComCoClass<CCommands, &CLSID_Commands>
  10. {
  11. protected:
  12. IApplication* m_pApplication;
  13. public:
  14. CCommands();
  15. ~CCommands();
  16. void SetApplicationObject(IApplication* m_pApplication);
  17. BEGIN_COM_MAP(CCommands)
  18. COM_INTERFACE_ENTRY(IDispatch)
  19. COM_INTERFACE_ENTRY(ICommands)
  20. END_COM_MAP()
  21. DECLARE_NOT_AGGREGATABLE(CCommands)
  22. public:
  23. // ICommands methods
  24. STDMETHOD(ReplAllCommandMethod)(THIS);
  25. };
  26. typedef CComObject<CCommands> CCommandsObj;
  27. //{{AFX_INSERT_LOCATION}}
  28. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  29. #endif // !defined(AFX_COMMANDS_H__1433431E_B34A_11D0_A217_244106C10000__INCLUDED)