📄 questiondlg.h
字号:
#if !defined(AFX_QUESTIONDLG_H__283348E2_616B_11D3_BF79_00C04F5091E8__INCLUDED_)
#define AFX_QUESTIONDLG_H__283348E2_616B_11D3_BF79_00C04F5091E8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// QuestionDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CQuestionDlg dialog
class CQuestionDlg : public CDialog
{
CString m_Selection;
CString m_Answers;
// Construction
public:
CQuestionDlg(CWnd* pParent = NULL); // standard constructor
void SetQuestion(LPCSTR theQuestion) { m_Question = theQuestion; }
void SetAnswer(LPCSTR theAnswer) { m_Answers = theAnswer; }
LPCSTR GetAnswer(void) { return (LPCSTR)m_Selection; }
// Dialog Data
//{{AFX_DATA(CQuestionDlg)
enum { IDD = IDD_QUESTION };
CListBox m_List;
CString m_Question;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CQuestionDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CQuestionDlg)
virtual void OnOK();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_QUESTIONDLG_H__283348E2_616B_11D3_BF79_00C04F5091E8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -