DropScrollBar.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /////////////////////////////////////////////////////////////////////////////
  2. // DropScrollBar.h : header file
  3. //
  4. // CAdvComboBox Control
  5. // Version: 2.1
  6. // Date: September 2002
  7. // Author: Mathias Tunared
  8. // Email: Mathias@inorbit.com
  9. // Copyright (c) 2002. All Rights Reserved.
  10. //
  11. // This code, in compiled form or as source code, may be redistributed
  12. // unmodified PROVIDING it is not sold for profit without the authors
  13. // written consent, and providing that this notice and the authors name
  14. // and all copyright notices remains intact.
  15. //
  16. // This file is provided "as is" with no expressed or implied warranty.
  17. // The author accepts no liability for any damage/loss of business that
  18. // this product may cause.
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21. #ifndef DROPSCROLLBAR_H
  22. #define DROPSCROLLBAR_H
  23. #include "DropWnd.h"
  24. class CDropListBox;
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CDropScrollBar window
  27. class CDropScrollBar : public CScrollBar
  28. {
  29. // Construction
  30. public:
  31. CDropScrollBar();
  32. // Attributes
  33. public:
  34. // Operations
  35. public:
  36. void SetListBox( CDropListBox* pListBox );
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CDropScrollBar)
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. public:
  43. virtual ~CDropScrollBar();
  44. // Generated message map functions
  45. protected:
  46. //{{AFX_MSG(CDropScrollBar)
  47. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  48. afx_msg void VScroll(UINT nSBCode, UINT nPos);
  49. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  50. //}}AFX_MSG
  51. afx_msg LONG OnSetCapture( WPARAM wParam, LPARAM lParam );
  52. afx_msg LONG OnReleaseCapture( WPARAM wParam, LPARAM lParam );
  53. DECLARE_MESSAGE_MAP()
  54. private:
  55. CDropListBox* m_pListBox;
  56. };
  57. /////////////////////////////////////////////////////////////////////////////
  58. //{{AFX_INSERT_LOCATION}}
  59. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  60. #endif //DROPSCROLLBAR_H