📄 paperdialog.h
字号:
#if !defined(AFX_PAPERDIALOG_H__903A8258_EDAA_4ACA_8595_F4E8CF188753__INCLUDED_)
#define AFX_PAPERDIALOG_H__903A8258_EDAA_4ACA_8595_F4E8CF188753__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PaperDialog.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPaperDialog dialog
#include "afxtempl.h"
#include "ChapterSet.h"
#include "JudgeSet.h"
#include "SpaceSet.h"
#include "SingleSet.h"
#include "MoreSet.h"
#include "PapersSet.h"
#include "PapersDataSet.h"
class CPaperDialog : public CDialog
{
// Construction
public:
int m_isauto; //自动选题标识,1为自动选题
int m_recno; //当前记录号
int m_reccount; //记录总数
CArray<int,int> m_spacescale; //保存填空题章节题量分配比例
CArray<int,int> m_judgescale; //保存判断题章节题量分配比例
CArray<int,int> m_singlescale; //保存单选题章节题量分配比例
CArray<int,int> m_morescale; //保存多选题章节题量分配比例
CArray<int,int> m_chapterid; //保存题章编号
CChapterSet* m_pSetChapter; //章节记录集指针
CJudgeSet* m_pSetJudge; //判断题记录集指针
CSpaceSet* m_pSetSpace; //填空记录集指针
CSingleSet* m_pSetSingle; //单选题记录集指针
CMoreSet* m_pSetMore; //多选题记录集指针
CPapersSet* m_pSetPaper; //试卷记录集指针
CPapersDataSet* m_pSetPaperData;//试卷数据记录集指针
public:
CPaperDialog(CWnd* pParent = NULL); // standard constructor
void ShowData(CString Direction);//显示当前试题内容
void DoAutoSelect();//自动生成试卷
int StringToInt(CString str);//将CString中包含的数字转换为数值
// Dialog Data
//{{AFX_DATA(CPaperDialog)
enum { IDD = IDD_PAPERDIALOG };
CEdit m_ctrpapername;
CComboBox m_chapter;
CListBox m_ctrmore;
CListBox m_ctrspace;
CListBox m_ctrsingle;
CListBox m_ctrjudge;
CComboBox m_type;
CButton m_moveprev;
CButton m_movenext;
CButton m_movelast;
CButton m_movefirst;
CString m_papername; //保存试卷名称
int m_spacescore; //保存填空题每空分值
int m_spacecount1; //保存填空题每小题有1个空的小题数
int m_spacecount2; //保存填空题每小题有2个空的小题
int m_judgescore; //保存判断题每空分值
int m_judgecount; //保存判断题小题数
int m_singlescore; //保存单选题每空分值
int m_singlecount; //保存单选题小题数
int m_morescore; //保存多选题每空分值
int m_morecount; //保存多选题小题数
int m_judgetotalscore;
int m_moretotalscore;
CString m_recnews;
int m_spacetotalscore;
int m_singletotalscore;
int m_totalscore;
int m_spacecount;
CString m_content;
int m_selsingle;
int m_selspace;
int m_seljudge;
int m_selmore;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPaperDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CPaperDialog)
afx_msg void OnSavepaper();
afx_msg void OnButtonMovefirst();
afx_msg void OnButtonMovelast();
afx_msg void OnButtonMovenext();
afx_msg void OnButtonMoveprev();
afx_msg void OnSelendokComboType();
virtual BOOL OnInitDialog();
afx_msg void OnDestroy();
afx_msg void OnAddtest();
afx_msg void OnDblclkListJudge();
afx_msg void OnDblclkListMore();
afx_msg void OnDblclkListSingle();
afx_msg void OnDblclkListSpace();
afx_msg void OnSelendokComboChapter();
afx_msg void OnSelchangeListJudge();
afx_msg void OnSelchangeListMore();
afx_msg void OnSelchangeListSingle();
afx_msg void OnSelchangeListSpace();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PAPERDIALOG_H__903A8258_EDAA_4ACA_8595_F4E8CF188753__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -