maindlg.cpp
来自「一个简单的虚拟机和虚拟操作系统」· C++ 代码 · 共 53 行
CPP
53 行
// MainDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "MyVM.h"
#include "MainDlg.h"
CString strMsg;
// CMainDlg
IMPLEMENT_DYNAMIC(CMainDlg, CPropertySheet)
CMainDlg::CMainDlg(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
}
CMainDlg::CMainDlg(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
this->AddPage(&this->m_pgCtrl);
this->AddPage(&this->m_pgOut);
this->AddPage(&this->m_pgEdit);
this->AddPage(&this->m_pgFS);
this->AddPage(&this->m_pgAbout);
}
CMainDlg::~CMainDlg()
{
}
BEGIN_MESSAGE_MAP(CMainDlg, CPropertySheet)
ON_WM_CLOSE()
END_MESSAGE_MAP()
// CMainDlg 消息处理程序
void CMainDlg::OnClose()
{
CPropertySheet::OnClose();
}
BOOL CMainDlg::OnInitDialog()
{
BOOL bResult = CPropertySheet::OnInitDialog();
//HICON hIcon = ::AfxGetApp()->LoadIcon(IDR_MAINFRAME);
//if(hIcon == 0)
// MessageBox("Error loading icon!");
//this->SetIcon(hIcon,TRUE);
return bResult;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?