xref: /MusicPlayer2/MusicPlayer2/UIWindow.h (revision bfc512bf53103916af5a2317d20e5cc6dc7facda)
1 #pragma once
2 #include "IPlayerUI.h"
3 
4 class CUIWindow :
5     public CStatic
6 {
7 public:
CUIWindow(IPlayerUI * & pUI)8     CUIWindow(IPlayerUI*& pUI)
9         : m_pUI(pUI)
10     {}
11 
~CUIWindow()12     ~CUIWindow()
13     {}
14 
15 protected:
16     IPlayerUI*& m_pUI;
17     bool m_bTitlebarLButtonDown{};
18     CPoint m_ptLButtonDown{};
19     IPlayerUI* GetCurUi() const;
20 
21     virtual void PreSubclassWindow();
22     virtual BOOL PreTranslateMessage(MSG* pMsg);
23 
24     DECLARE_MESSAGE_MAP()
25     afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
26     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
27     afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
28 //    afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
29     afx_msg void OnMouseMove(UINT nFlags, CPoint point);
30 public:
31     afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
32     afx_msg void OnPaint();
33     afx_msg void OnSize(UINT nType, int cx, int cy);
34     afx_msg void OnMouseLeave();
35 protected:
36     afx_msg LRESULT OnTabletQuerysystemgesturestatus(WPARAM wParam, LPARAM lParam);
37 public:
38     afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
39 };
40 
41