VolumeCtrl.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #if !defined(AFX_VOLUMECTRL_H__AFBF9D0E_12E4_46EA_93E9_D983DC8C1DA9__INCLUDED_)
  2. #define AFX_VOLUMECTRL_H__AFBF9D0E_12E4_46EA_93E9_D983DC8C1DA9__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // VolumeCtrl.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CVolumeCtrl window
  10. class CVolumeCtrl : public CSliderCtrl
  11. {
  12. // Construction
  13. public:
  14. CVolumeCtrl();
  15. // Attributes
  16. public:
  17. CBrush m_brush;
  18. CPen m_LightPen;
  19. CPen m_ShadowPen;
  20. POINT m_MousePt;
  21. // Operations
  22. public:
  23. void DrawTriangle(CDC *pDC, CRect *prcDraw);
  24. BOOL PreTranslateMessage(MSG* pMsg);
  25. // Overrides
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CVolumeCtrl)
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. public:
  31. virtual ~CVolumeCtrl();
  32. // Generated message map functions
  33. protected:
  34. //{{AFX_MSG(CVolumeCtrl)
  35. afx_msg void OnPaint();
  36. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  37. //}}AFX_MSG
  38. DECLARE_MESSAGE_MAP()
  39. };
  40. /////////////////////////////////////////////////////////////////////////////
  41. //{{AFX_INSERT_LOCATION}}
  42. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  43. #endif // !defined(AFX_VOLUMECTRL_H__AFBF9D0E_12E4_46EA_93E9_D983DC8C1DA9__INCLUDED_)