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.

84 lines
2.3 KiB

  1. #if !defined(AFX_SPLITTERCTL_H__58BB5D6F_8E20_11D2_8ADA_0000F87A3912__INCLUDED_)
  2. #define AFX_SPLITTERCTL_H__58BB5D6F_8E20_11D2_8ADA_0000F87A3912__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SplitterCtl.h : Declaration of the CSplitterCtrl ActiveX Control class.
  7. #include "SplitterWndEx.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CSplitterCtrl : See SplitterCtl.cpp for implementation.
  10. class CSplitterCtrl : public COleControl
  11. {
  12. DECLARE_DYNCREATE(CSplitterCtrl)
  13. // Constructor
  14. public:
  15. CSplitterCtrl();
  16. // Overrides
  17. // ClassWizard generated virtual function overrides
  18. //{{AFX_VIRTUAL(CSplitterCtrl)
  19. public:
  20. virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
  21. virtual void DoPropExchange(CPropExchange* pPX);
  22. virtual void OnResetState();
  23. virtual DWORD GetControlFlags();
  24. virtual BOOL OnSetExtent(LPSIZEL lpSizeL);
  25. //}}AFX_VIRTUAL
  26. // Implementation
  27. protected:
  28. ~CSplitterCtrl();
  29. CSplitterWndEx m_wndSplitter;
  30. BEGIN_OLEFACTORY(CSplitterCtrl) // Class factory and guid
  31. virtual BOOL VerifyUserLicense();
  32. virtual BOOL GetLicenseKey(DWORD, BSTR FAR*);
  33. END_OLEFACTORY(CSplitterCtrl)
  34. DECLARE_OLETYPELIB(CSplitterCtrl) // GetTypeInfo
  35. DECLARE_PROPPAGEIDS(CSplitterCtrl) // Property page IDs
  36. DECLARE_OLECTLTYPE(CSplitterCtrl) // Type name and misc status
  37. // Message maps
  38. //{{AFX_MSG(CSplitterCtrl)
  39. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  40. //}}AFX_MSG
  41. DECLARE_MESSAGE_MAP()
  42. // Dispatch maps
  43. //{{AFX_DISPATCH(CSplitterCtrl)
  44. afx_msg BOOL CreateControl(long lRow, long lColumn, LPCTSTR lpszControlID);
  45. afx_msg BOOL GetControl(long lRow, long lColumn, long FAR* phCtlWnd);
  46. afx_msg LPUNKNOWN GetControlIUnknown(long lRow, long lColumn);
  47. //}}AFX_DISPATCH
  48. DECLARE_DISPATCH_MAP()
  49. afx_msg void AboutBox();
  50. // Event maps
  51. //{{AFX_EVENT(CSplitterCtrl)
  52. //}}AFX_EVENT
  53. DECLARE_EVENT_MAP()
  54. // Dispatch and event IDs
  55. public:
  56. enum {
  57. //{{AFX_DISP_ID(CSplitterCtrl)
  58. dispidCreateControl = 1L,
  59. dispidGetControl = 2L,
  60. dispidGetControlIUnknown = 3L,
  61. //}}AFX_DISP_ID
  62. };
  63. };
  64. //{{AFX_INSERT_LOCATION}}
  65. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  66. #endif // !defined(AFX_SPLITTERCTL_H__58BB5D6F_8E20_11D2_8ADA_0000F87A3912__INCLUDED)