DSAddIn.h
上传用户:gddssl
上传日期:2007-01-06
资源大小:1003k
文件大小:1k
源码类别:

编辑器/阅读器

开发平台:

DOS

  1. // DSAddIn.h : header file
  2. //
  3. #if !defined(AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED_)
  4. #define AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED_
  5. #include "commands.h"
  6. //{AC726702-2977-11D1-B2F3-006008040780}
  7. DEFINE_GUID (CLSID_DSAddIn,
  8. 0xac726702, 0x2977, 0x11d1, 0xb2, 0xf3, 0, 0x60, 0x8, 0x4, 0x7, 0x80);
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CDSAddIn
  11. class CDSAddIn :
  12. public   IDSAddIn,
  13. public   CComObjectRoot,
  14. public   CComCoClass < CDSAddIn,
  15.  &CLSID_DSAddIn >
  16. {
  17.     public:
  18. DECLARE_REGISTRY (CDSAddIn, "VisVim.DSAddIn.1",
  19.   "VisVim Developer Studio Add-in", IDS_VISVIM_LONGNAME,
  20.   THREADFLAGS_BOTH)
  21. CDSAddIn ()
  22. {
  23. }
  24. BEGIN_COM_MAP (CDSAddIn)
  25. COM_INTERFACE_ENTRY (IDSAddIn)
  26. END_COM_MAP ()
  27. DECLARE_NOT_AGGREGATABLE (CDSAddIn)
  28. // IDSAddIns
  29.     public:
  30. STDMETHOD (OnConnection) (THIS_ IApplication * pApp, VARIANT_BOOL bFirstTime,
  31.   long dwCookie, VARIANT_BOOL * OnConnection);
  32. STDMETHOD (OnDisconnection) (THIS_ VARIANT_BOOL bLastTime);
  33.     protected:
  34. bool AddCommand (IApplication* pApp, char* MethodName, char* CmdName,
  35.  UINT StrResId, UINT GlyphIndex, VARIANT_BOOL bFirstTime);
  36.     protected:
  37. CCommandsObj * m_pCommands;
  38. DWORD m_dwCookie;
  39. };
  40. //{{AFX_INSERT_LOCATION}}
  41. #endif // !defined(AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED)