-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppWnd.hpp
66 lines (53 loc) · 1.35 KB
/
AppWnd.hpp
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
60
61
62
63
64
65
66
////////////////////////////////////////////////////////////////////////////////
//! \file AppWnd.hpp
//! \brief The AppWnd class declaration.
//! \author Chris Oldwood
// Check for previous inclusion
#ifndef APP_APPWND_HPP
#define APP_APPWND_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <WCL/DlgFrame.hpp>
#include "AppDlg.hpp"
#include <WCL/FrameMenu.hpp>
#include "AppToolbar.hpp"
#include <WCL/StatusBar.hpp>
#include <WCL/Accel.hpp>
////////////////////////////////////////////////////////////////////////////////
//! The application main window.
class AppWnd : public CDlgFrame
{
public:
//! Constructor.
AppWnd(WCL::IMsgThread& thread, WCL::ICmdController& controller, Model& model);
//! Destructor.
virtual ~AppWnd();
//! Rebuild the custom tools menu.
void rebuildToolsMenu();
//
// Public Members.
//
AppDlg m_mainDlg; //!< The main dialog.
CFrameMenu m_menu; //!< The main menu.
AppToolbar m_toolbar; //!< The toolbar.
CStatusBar m_statusbar; //!< The status bar.
private:
//
// Internal members.
//
CAccel m_accelerators; //!< The accelerator table.
Tools& m_tools; //!< The set of external tools.
// Child window IDs.
enum
{
IDC_TOOL_BAR = 100,
IDC_STATUS_BAR = 101
};
//
// Message processors.
//
//! Handle window creation.
virtual void OnCreate(const CRect& clientRect);
};
#endif // APP_APPWND_HPP