Source code of Windows XP (NT5)
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.

95 lines
2.5 KiB

  1. #if !defined(AFX_HMTABVIEWCTL_H__4FFFC39A_2F1E_11D3_BE10_0000F87A3912__INCLUDED_)
  2. #define AFX_HMTABVIEWCTL_H__4FFFC39A_2F1E_11D3_BE10_0000F87A3912__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // HMTabViewCtl.h : Declaration of the CHMTabViewCtrl ActiveX Control class.
  7. #include "HMTabCtrl.h"
  8. #include "..\splitter\CtrlWnd.h"
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CHMTabViewCtrl : See HMTabViewCtl.cpp for implementation.
  11. class CHMTabViewCtrl : public COleControl
  12. {
  13. DECLARE_DYNCREATE(CHMTabViewCtrl)
  14. // Constructor
  15. public:
  16. CHMTabViewCtrl();
  17. // Overrides
  18. // ClassWizard generated virtual function overrides
  19. //{{AFX_VIRTUAL(CHMTabViewCtrl)
  20. public:
  21. virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
  22. virtual void DoPropExchange(CPropExchange* pPX);
  23. virtual void OnResetState();
  24. //}}AFX_VIRTUAL
  25. // Operations
  26. public:
  27. void OnSelChangeTabs(int iItem);
  28. // Child Members
  29. protected:
  30. CHMTabCtrl m_TabCtrl;
  31. CTypedPtrArray<CObArray,CCtrlWnd*> m_Controls;
  32. // Implementation
  33. protected:
  34. ~CHMTabViewCtrl();
  35. BEGIN_OLEFACTORY(CHMTabViewCtrl) // Class factory and guid
  36. virtual BOOL VerifyUserLicense();
  37. virtual BOOL GetLicenseKey(DWORD, BSTR FAR*);
  38. END_OLEFACTORY(CHMTabViewCtrl)
  39. DECLARE_OLETYPELIB(CHMTabViewCtrl) // GetTypeInfo
  40. DECLARE_PROPPAGEIDS(CHMTabViewCtrl) // Property page IDs
  41. DECLARE_OLECTLTYPE(CHMTabViewCtrl) // Type name and misc status
  42. // Message maps
  43. //{{AFX_MSG(CHMTabViewCtrl)
  44. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  45. afx_msg void OnSize(UINT nType, int cx, int cy);
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. // Dispatch maps
  49. //{{AFX_DISPATCH(CHMTabViewCtrl)
  50. afx_msg BOOL InsertItem(long lMask, long lItem, LPCTSTR lpszItem, long lImage, long lParam);
  51. afx_msg BOOL DeleteItem(long lItem);
  52. afx_msg BOOL DeleteAllItems();
  53. afx_msg BOOL CreateControl(long lItem, LPCTSTR lpszControlID);
  54. afx_msg LPUNKNOWN GetControl(long lItem);
  55. //}}AFX_DISPATCH
  56. DECLARE_DISPATCH_MAP()
  57. afx_msg void AboutBox();
  58. // Event maps
  59. //{{AFX_EVENT(CHMTabViewCtrl)
  60. //}}AFX_EVENT
  61. DECLARE_EVENT_MAP()
  62. // Dispatch and event IDs
  63. public:
  64. enum {
  65. //{{AFX_DISP_ID(CHMTabViewCtrl)
  66. dispidInsertItem = 1L,
  67. dispidDeleteItem = 2L,
  68. dispidDeleteAllItems = 3L,
  69. dispidCreateControl = 4L,
  70. dispidGetControl = 5L,
  71. //}}AFX_DISP_ID
  72. };
  73. };
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  76. #endif // !defined(AFX_HMTABVIEWCTL_H__4FFFC39A_2F1E_11D3_BE10_0000F87A3912__INCLUDED)