📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__82386C4E_F0EA_4918_A42A_2CFADE7A7748__INCLUDED_)
#define AFX_MAINFRM_H__82386C4E_F0EA_4918_A42A_2CFADE7A7748__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "FixSplitterWnd.h"
#include "TestPaperView.h"
#include "ModuleView.h"
#include "QueryResultDialog.h"
#include "afxdao.h"
#include "YangDialog.h"
#include "XinDialog.h"
#include "afxdb.h"
#define ID_LIST2 30001
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
protected:
CFixSplitterWnd m_wndSplitter;
public:
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
CReBar m_wndReBar;
CComboBoxEx m_wndAddress1;
CComboBoxEx m_wndAddress2;
CBitmap m_bitmap1;
CBitmap m_bitmap2;
CBitmap m_bitmap3;
CBitmap m_bitmap4;
CBitmap m_bitmap5;
CDatabase m_database;
CRecordset m_recordset;
CRecordset m_queryset;
CRecordset m_statset;
CRecordset m_xinrecordset;
CRecordset m_xinpaperset;
CRecordset m_seerecordset;
CRecordset m_yangrecordset;
CRecordset m_temprecordset1;
CRecordset m_temprecordset2;
CRecordset m_temprecordset3;
CRecordset m_testpaperrecordset;
CRecordset m_testpaperrecordset2;
CRecordset m_testpaperrecordset3;
// Operations
public:
BOOL AddBitmap(UINT n);
BOOL AddBitmap2(UINT n);
public:
CImageList Combo_ImageList;
CImageList Combo_ImageList2;
CImageList* img;
CImageList* img2;
CString str;
CString tempyang1;
CString tempyang2;
BOOL BoolConnent;
BOOL booltestpaer;
CToolTipCtrl m_tooltip;
CTestPaperView* testview;
CModuleView* moduleview;
int ming;
int list;
CXinDialog xindlg;
CQueryRESULTDialog redlg;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
public:
BOOL CreateAnswer();
BOOL CreateTestPaper();
BOOL ChooseTestPaper();
void Refreshdata();
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnAbout();
afx_msg void OnColor();
afx_msg void OnContent();
afx_msg void OnConnent();
afx_msg void OnDisconnent();
afx_msg void OnDestroy();
afx_msg void OnQh();
afx_msg void OnChaxun();
afx_msg void OnTongji();
afx_msg void OnShezhi();
afx_msg void OnQsqs();
afx_msg void OnScsc();
afx_msg void OnXgxg();
afx_msg void OnLrlr();
afx_msg void OnPwd();
afx_msg void OnPwdsc();
afx_msg void OnAnswer();
afx_msg void OnCreateTestPaper();
//}}AFX_MSG
afx_msg void OnSelchangeCombo1();
afx_msg void OnSelchangeCombo2();
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__82386C4E_F0EA_4918_A42A_2CFADE7A7748__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -