Leaked source code of windows server 2003
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.

102 lines
3.2 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : CoverPage.h //
  3. // //
  4. // DESCRIPTION : Header file for the cover page node. //
  5. // //
  6. // AUTHOR : yossg //
  7. // //
  8. // HISTORY : //
  9. // Feb 9 2000 yossg Create //
  10. // Oct 17 2000 yossg //
  11. // //
  12. // Copyright (C) 2000 Microsoft Corporation All Rights Reserved //
  13. /////////////////////////////////////////////////////////////////////////////
  14. #ifndef H_FAXCOVERPAGE_H
  15. #define H_FAXCOVERPAGE_H
  16. #include "snapin.h"
  17. #include "snpnode.h"
  18. #include "Icons.h"
  19. class CFaxCoverPagesNode;
  20. class CFaxCoverPageNode : public CSnapinNode <CFaxCoverPageNode, FALSE>
  21. {
  22. public:
  23. BEGIN_SNAPINCOMMAND_MAP(CFaxCoverPageNode, FALSE)
  24. SNAPINCOMMAND_ENTRY(IDM_EDIT_COVERPAGE, OnEditCoverPage)
  25. END_SNAPINCOMMAND_MAP()
  26. BEGIN_SNAPINTOOLBARID_MAP(CFaxCoverPageNode)
  27. END_SNAPINTOOLBARID_MAP()
  28. SNAPINMENUID(IDR_COVERPAGE_MENU)
  29. //
  30. // Constructor
  31. //
  32. CFaxCoverPageNode (CSnapInItem * pParentNode, CSnapin * pComponentData) :
  33. CSnapinNode<CFaxCoverPageNode, FALSE>(pParentNode, pComponentData )
  34. {
  35. }
  36. //
  37. // Destructor
  38. //
  39. ~CFaxCoverPageNode()
  40. {
  41. }
  42. LPOLESTR GetResultPaneColInfo(int nCol);
  43. void InitParentNode(CFaxCoverPagesNode *pParentNode)
  44. {
  45. m_pParentNode = pParentNode;
  46. }
  47. virtual HRESULT SetVerbs(IConsoleVerb *pConsoleVerb);
  48. HRESULT OnEditCoverPage(bool &bHandled, CSnapInObjectRootBase *pRoot);
  49. virtual HRESULT OnDelete(LPARAM arg,
  50. LPARAM param,
  51. IComponentData *pComponentData,
  52. IComponent *pComponent,
  53. DATA_OBJECT_TYPES type,
  54. BOOL fSilent = FALSE);
  55. virtual HRESULT OnDoubleClick(LPARAM arg,
  56. LPARAM param,
  57. IComponentData *pComponentData,
  58. IComponent *pComponent,
  59. DATA_OBJECT_TYPES type);
  60. HRESULT Init(WIN32_FIND_DATA * pCoverPageConfig);
  61. HRESULT OnShowContextHelp(
  62. IDisplayHelp* pDisplayHelp, LPOLESTR helpFile);
  63. void UpdateMenuState (UINT id, LPTSTR pBuf, UINT *flags);
  64. private:
  65. //
  66. // Parent Node
  67. //
  68. CFaxCoverPagesNode * m_pParentNode;
  69. //
  70. // members
  71. //
  72. CComBSTR m_bstrTimeFormatted;
  73. CComBSTR m_bstrFileSize;
  74. };
  75. //typedef CSnapinNode<CFaxCoverPageNode, FALSE> CBaseFaxInboundRoutingMethodNode;
  76. #endif //H_FAXCOVERPAGE_H