blob: 899326ab5ee690dd1d288c6fae66b7edae7bd6fe (
plain) (
blame)
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
54
55
56
57
58
59
|
#ifndef CMAINFRAME_H
#define CMAINFRAME_H
class CMainToolBar : public CToolBar {
public:
CMainToolBar();
virtual ~CMainToolBar();
DECLARE_DYNCREATE(CMainToolBar)
virtual int Create(CWnd *parent);
enum {
NoState = 0,
ViewFree,
};
virtual void EnableState(int state, BOOL enabled);
void UpdateButtonsForView(class CFolderView *view);
void Reload(void);
protected:
//{{AFX_MSG(CMainToolBar)
afx_msg void OnIgnoreUpdate(CCmdUI *ui);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
class CMainFrame : public CFrameWnd {
public:
CMainFrame();
virtual ~CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void RecalcLayout(BOOL bNotify);
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy(void);
afx_msg void OnSysCommand(UINT nid, LPARAM lparam);
afx_msg void OnClose();
afx_msg void OnActivateApp(BOOL bActive, HTASK hTask);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnWindowPosChanged(WINDOWPOS *wp);
afx_msg void OnShowWindow(BOOL bShow, UINT status);
//}}AFX_MSG
afx_msg void OnIgnoreUpdate(CCmdUI *ui);
DECLARE_MESSAGE_MAP()
public:
CMainToolBar m_toolbar;
};
#endif
|