📄 showinfo.cpp
字号:
// ShowInfo.cpp : implementation file
//
#include "stdafx.h"
#include "bxt.h"
#include "ShowInfo.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CShowInfo dialog
CShowInfo::CShowInfo(CString &info, CWnd* pParent /*=NULL*/)
: CDialog(CShowInfo::IDD, pParent)
{
//{{AFX_DATA_INIT(CShowInfo)
m_info = info;
//}}AFX_DATA_INIT
}
void CShowInfo::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CShowInfo)
DDX_Text(pDX, IDC_EDIT_INFO, m_info);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CShowInfo, CDialog)
//{{AFX_MSG_MAP(CShowInfo)
ON_WM_NCHITTEST()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CShowInfo message handlers
UINT
CShowInfo::OnNcHitTest(CPoint point)
{
return HTCAPTION;
}
BOOL CShowInfo::OnInitDialog()
{
CDialog::OnInitDialog();
CRect rect;
ShowWindow(SW_SHOWMAXIMIZED);
GetClientRect(&rect);
GetDlgItem(IDC_EDIT_INFO)->MoveWindow(rect.left, rect.top, rect.Width(), rect.Height());
return TRUE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -