[go: up one dir, main page]

Menu

[r499]: / trunk / VTS3 / MainFrm.h  Maximize  Restore  History

Download this file

91 lines (71 with data), 2.6 kB

 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__BDE65084_B82F_11D3_BE52_00A0C95A9812__INCLUDED_)
#define AFX_MAINFRM_H__BDE65084_B82F_11D3_BE52_00A0C95A9812__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMainFrame : public CMDIFrameWnd
{
DECLARE_DYNAMIC(CMainFrame)
CProgressCtrl m_progress;
public:
CMainFrame();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
// Added by Yajun Zhou, 2002-4-22
// madanner, 5/03 moved to frame of edit
// void SetLnPaneText(CString str);
// Code for progress bar inside help text area of status bar
CProgressCtrl * InitializeProgress( void );
void ReleaseProgress( void );
////////////////////////////////////
//Added by Zhenhua Zhu, 2003-6-2
CMDIChildWnd* GetChildFrame(CRuntimeClass *pClass, int nNum = 1);
BOOL GetCmdState(int CmdType, CMDIChildWnd* pFrame, CString& str);
///////////////////////////////////
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
//Added by Zhenhua Zhu, 2003-5-26
//////////////////////////////////
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnWindowNew();
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnClose();
////////////////////////////////////////////////////////////
//Added by Zhenhua Zhu, 2003-6-2
afx_msg void OnEditDelete();
afx_msg void OnUpdateEditDelete(CCmdUI* pCmdUI);
afx_msg void OnUpdateScriptRun(CCmdUI* pCmdUI);
afx_msg void OnUpdateScriptCheckSyntax(CCmdUI* pCmdUI);
afx_msg void OnToolbarDropDown(NMTOOLBAR* pnmh, LRESULT* plRes);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
extern int gSelectedPort; // which port selected for Send menu
extern int gSelectedGroup; // which packet group selected
extern int gSelectedItem; // which item selected
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__BDE65084_B82F_11D3_BE52_00A0C95A9812__INCLUDED_)