forked from sabrogden/Ditto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGroupWnd.h
55 lines (45 loc) · 1.42 KB
/
GroupWnd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once
#include "DittoWindow.h"
#include "GroupTree.h"
#include "MagneticWnd.h"
#include "AlphaBlend.h"
class CGroupWnd : public CMagneticWnd
{
DECLARE_DYNAMIC(CGroupWnd)
public:
CGroupWnd();
virtual ~CGroupWnd();
protected:
CDittoWindow m_DittoWindow;
CGroupTree m_Tree;
long m_lSelectedGroup;
HWND m_hwndNotify;
CToolBar m_ToolBar;
CSliderCtrl m_Transparency;
CAlphaBlend m_Alpha;
void MoveControls();
public:
void SetNotifyWnd(HWND hWnd) { m_hwndNotify = hWnd; m_Tree.SetNotificationWndEx(hWnd); }
void SetSelectedGroup(long lGroup) { m_lSelectedGroup = lGroup; }
void RefreshTree(long lSelectedGroup);
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
virtual BOOL PreTranslateMessage(MSG* pMsg);
afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
afx_msg void OnNcPaint();
afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
afx_msg UINT OnNcHitTest(CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
void OnRefresh();
void OnPin();
void OnNewGroup();
afx_msg void OnClose();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnDestroy();
void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
};