custominputdialog.cpp

来自「随着计算机信息技术的飞速发展」· C++ 代码 · 共 45 行

CPP
45
字号
// CustomInputDialog.cpp: implementation of the CCustomInputDialog class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "CDynamicDialog.h"
#include "CustomInputDialog.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CCustomInputDialog::CCustomInputDialog()
{
	m_dlgTempl.cx = 100;  
	m_dlgTempl.cy = 80;  
}

CCustomInputDialog::~CCustomInputDialog()
{

}
BOOL CCustomInputDialog::OnInitDialog()
{
	CMemoryDialog::OnInitDialog();

	
	m_StaticCtrl.Create("输入数据:",WS_CHILD | WS_VISIBLE,CRect(30,20,180,40),this);
	

	m_Edit.Create(WS_CHILD | WS_VISIBLE |WS_BORDER,CRect(30,60,180,80),this,WM_USER+3000);

	
	m_Button.Create("OK",WS_CHILD | WS_VISIBLE,CRect(60,120,150,150),this,IDOK);
	

	return true;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?