-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainfrm.hpp
64 lines (55 loc) · 1.83 KB
/
Mainfrm.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
/////////////////////////////////////////////
// Mainfrm.h
#ifndef MAINFRM_H
#define MAINFRM_H
#include "View.hpp"
#include "SettingsDialog.hpp"
// forward declared to avoid circular dependency
class VisionRGBApp;
// Declaration of the CMainFrame class
class CMainFrame : public CFrame
{
public:
CMainFrame(VisionRGBApp *pApp);
virtual ~CMainFrame();
BOOL OnFileExit();
BOOL OnFileOpen();
BOOL OnFilePrint();
BOOL OnFileSave();
BOOL OnSettings();
BOOL OnTBBigIcons();
BOOL OnTBCustomize();
BOOL OnTBDefault();
void SaveTBDefault();
void AddInputList();
void SetupStatusBar();
HWND GetView();
protected:
virtual LRESULT OnBeginAdjust(LPNMTOOLBAR pNMTB);
virtual BOOL OnCommand(WPARAM wparam, LPARAM lparam);
virtual int OnCreate(CREATESTRUCT& cs);
virtual LRESULT OnDrawItem(UINT msg, WPARAM wparam, LPARAM lparam);
virtual LRESULT OnCustHelp(LPNMHDR pNMHDR);
virtual LRESULT OnEndAdjust(LPNMHDR pNMHDR);
virtual LRESULT OnGetButtonInfo(LPNMTOOLBAR pNMTB);
virtual void OnInitialUpdate();
virtual LRESULT OnNotify(WPARAM wparam, LPARAM lparam);
virtual LRESULT OnQueryDelete(LPNMTOOLBAR pNMTB);
virtual LRESULT OnQueryInsert(LPNMTOOLBAR pNMTB);
virtual LRESULT OnReset(LPNMTOOLBAR pNMTB);
virtual LRESULT OnToolBarChange(LPNMTOOLBAR pNMTB);
virtual void SetupToolBar();
CSettingsDialog& GetDialog() { return m_settingsDialog; }
virtual LRESULT WndProc(UINT msg, WPARAM wparam, LPARAM lparam);
private:
CView m_view;
std::vector<TBBUTTON> m_defaultButtons;
std::vector<TBBUTTON> m_resetButtons;
BOOL m_useBigIcons;
CToolBar m_inputBar;
CComboBox m_inputList;
CSettingsDialog m_settingsDialog;
VisionRGBApp* m_pApp;
};
HFONT GetWindowsDefaultFont();
#endif //MAINFRM_H