📄 stopdlg.cpp
字号:
// StopDlg.cpp : implementation file
//
#include "stdafx.h"
#include "IMPUBasic语言程序设计器.h"
#include "StopDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CStopDlg dialog
CStopDlg::CStopDlg(CWnd* pParent /*=NULL*/)
: CDialog(CStopDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CStopDlg)
m_Edit1 = _T("");
//}}AFX_DATA_INIT
}
CStopDlg::CStopDlg(CString c)
: CDialog(CStopDlg::IDD, NULL)
{
m_Edit1 = _T("");
m_Edit1 = c;
}
void CStopDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CStopDlg)
DDX_Text(pDX, IDC_EDIT1, m_Edit1);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CStopDlg, CDialog)
//{{AFX_MSG_MAP(CStopDlg)
ON_WM_SIZE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CStopDlg message handlers
void CStopDlg::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
CRect rect,rect1;
GetClientRect(&rect);
GetClientRect(&rect1);
rect.bottom=rect.bottom-120;
rect1.top=rect.bottom+30;
rect1.bottom=rect1.bottom-30;
rect1.left=rect1.right/2-100;
rect1.right=rect1.left+160;
// TODO: Add your message handler code here
//rect.bottom=rect.bottom-100;
CEdit *pEdit = (CEdit *)GetDlgItem(IDC_EDIT1);
if(pEdit)
{
pEdit->MoveWindow(&rect);
}
CButton *pButton = (CButton *)GetDlgItem(IDOK);
if(pButton)
{
pButton->MoveWindow(&rect1);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -