recivedialog.cpp
来自「手机串口通信设置程序」· C++ 代码 · 共 59 行
CPP
59 行
// ReciveDialog.cpp : implementation file
//
#include "stdafx.h"
#include "phonepc.h"
#include "ReciveDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CReciveDialog dialog
CReciveDialog::CReciveDialog(CWnd* pParent /*=NULL*/)
: CDialog(CReciveDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CReciveDialog)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
BOOL CReciveDialog::OnInitDialog()
{
CDialog::OnInitDialog();
CRect rect;
GetWindowRect(rect);
SetWindowPos(0,(rect.left + rect.right)/2,(rect.bottom + rect.top)/2,0,0,SWP_NOSIZE|SWP_NOZORDER);
return TRUE;
}
void CReciveDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CReciveDialog)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CReciveDialog, CDialog)
//{{AFX_MSG_MAP(CReciveDialog)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CReciveDialog message handlers
int CReciveDialog::OnCloseDlg()
{
OnOK();
return 1;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?