IContextMenuImpl.h
上传用户:aiweisk
上传日期:2007-05-01
资源大小:85k
文件大小:2k
源码类别:

编辑器/阅读器

开发平台:

DOS

  1. //---------------------------------------------------------------------------------------
  2. // Quick Hex Shell extension
  3. // Copyright (c) 2000 by Shanker.C
  4. // All rights reserved
  5. // Author's consent required if this program is to be used for commercial purposes
  6. // No warranty of any kind, expressed or implied, is included with this
  7. // software; use at your own risk, responsibility for damages (if any) to
  8. // anyone resulting from the use of this software rests entirely with the user.
  9. // Please send comments/suggestions/criticisms to: Shanker@xlprint.com
  10. // March 7, 2000
  11. //---------------------------------------------------------------------------------------
  12. #ifndef _CONTEXTMENUIMPL_H_
  13. #define _CONTEXTMENUIMPL_H_
  14. //---------------------------------------------------------------------------------------
  15. #include <AtlCom.h>
  16. #include <ShlObj.h>
  17. class ATL_NO_VTABLE IContextMenuImpl : public IContextMenu
  18. {
  19. public:
  20. // IUnknown methods
  21. STDMETHOD(QueryInterface)(REFIID riid, void** ppvObject) = 0;
  22. _ATL_DEBUG_ADDREF_RELEASE_IMPL(IContextMenuImpl)
  23. // IContextMenu methods
  24. STDMETHOD(GetCommandString)(UINT, UINT, UINT*, LPSTR, UINT)
  25. {
  26. return S_FALSE;
  27. }
  28. STDMETHOD(InvokeCommand)(LPCMINVOKECOMMANDINFO)
  29. {
  30. return S_FALSE;
  31. }
  32. STDMETHOD(QueryContextMenu)(HMENU, UINT, UINT, UINT, UINT)
  33. {
  34. return S_FALSE;
  35. }
  36. };
  37. //---------------------------------------------------------------------------------------
  38. #endif //_CONTEXTMENUIMPL_H_
  39. //---------------------------------------------------------------------------------------