customprogressdialog.cpp

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

CPP
41
字号
// CustomProgressDialog.cpp: implementation of the CCustomProgressDialog class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "CDynamicDialog.h"
#include "CustomProgressDialog.h"

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

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

CCustomProgressDialog::CCustomProgressDialog()
{
	m_dlgTempl.cx = 180;  
	m_dlgTempl.cy = 40;  
}

CCustomProgressDialog::~CCustomProgressDialog()
{

}
BOOL CCustomProgressDialog::OnInitDialog() 
{

	CMemoryDialog::OnInitDialog();

	if(!m_ProCtrl.GetSafeHwnd()){
		m_ProCtrl.Create(WS_CHILD | WS_VISIBLE,CRect(50,20,300,40),this,WM_USER+3000);
		m_ProCtrl.ShowWindow(SW_SHOW);
	}

	return true;
}

⌨️ 快捷键说明

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