showinfo.cpp
来自「超声影像工作站系统可与各种型号的B超、彩超连接」· C++ 代码 · 共 60 行
CPP
60 行
// 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 + =
减小字号Ctrl + -
显示快捷键?