aduiListCtrl.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #ifndef _aduiListCtrl_h
  11. #define _aduiListCtrl_h
  12. #pragma pack (push, 8)
  13. #pragma once
  14. #ifndef _ADESK_MAC_
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CAdUiListCtrl window
  17. #pragma warning(push)
  18. #pragma warning(disable : 4275)
  19. class ADUI_PORT CAdUiListCtrl : public CListCtrl {
  20. DECLARE_DYNAMIC(CAdUiListCtrl);
  21. public:
  22. CAdUiListCtrl ();
  23. virtual ~CAdUiListCtrl ();
  24. // Misc.
  25. protected:
  26. CPoint m_lastMousePoint;
  27. int m_tipIndex;
  28. int m_tipItem;
  29. CRect m_tipRect;
  30. public:
  31. CAdUiHeaderCtrl m_headerCtrl;
  32. int ColumnCount ();
  33. virtual void GetContentExtent (
  34. int item, int index, LPCTSTR text, int& width, int& height
  35. );
  36. BOOL GetItemAtPoint (CPoint& p, int& item, int& index);
  37. BOOL GetSubItemRect (int item, int index, CRect& rect);
  38. void GetTextExtent (LPCTSTR text, int& width, int& height);
  39. BOOL IsOwnerDraw ();
  40. // AdUi message handlers
  41. protected:
  42. CWnd *m_aduiParent;
  43. virtual ADUI_REPLY DoAdUiMessage (
  44. ADUI_NOTIFY notifyCode, UINT controlId, LPARAM lParam
  45. );
  46. virtual void OnDrawTip (CDC& dc);
  47. virtual BOOL OnDrawTipText (CAdUiDrawTipText& dtt);
  48. virtual ADUI_REPLY OnGetTipSupport (CPoint& p);
  49. virtual BOOL OnGetTipRect (CRect& r);
  50. virtual BOOL OnGetTipText (CString& text);
  51. virtual BOOL OnHitTipRect (CPoint& p);
  52. public:
  53. CWnd *GetAdUiParent ();
  54. void SetAdUiParent (CWnd *w);
  55. // ClassWizard-controlled
  56. public:
  57. //{{AFX_VIRTUAL(CAdUiListCtrl)
  58. protected:
  59. virtual void PreSubclassWindow();
  60. //}}AFX_VIRTUAL
  61. protected:
  62. //{{AFX_MSG(CAdUiListCtrl)
  63. afx_msg LRESULT OnAdUiMessage (WPARAM wParam, LPARAM lParam);
  64. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. };
  68. #pragma warning(pop)
  69. #endif //_ADESK_MAC_
  70. /////////////////////////////////////////////////////////////////////////////
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  73. #pragma pack (pop)
  74. #endif
  75. /////////////////////////////////////////////////////////////////////////////