dlgpro.cpp

来自「我自己整理的一些VC源代码」· C++ 代码 · 共 65 行

CPP
65
字号
// Dlgpro.cpp : implementation file
//

#include "stdafx.h"
#include "SellMan.h"
#include "Dlgpro.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgpro dialog


CDlgpro::CDlgpro(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgpro::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgpro)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CDlgpro::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgpro)
	DDX_Control(pDX, IDC_ST_MSG, m_st_msg);
	DDX_Control(pDX, IDC_PR, m_pr);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgpro, CDialog)
	//{{AFX_MSG_MAP(CDlgpro)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgpro message handlers

void CDlgpro::Open(int iMax, CString strWindowCaption)
{
	SetWindowText( strWindowCaption );
	m_pr.SetRange( 0, iMax );
	ShowWindow( SW_SHOW );
}

void CDlgpro::SetProgressMessage(CString strMessage, int iPos)
{
	m_st_msg.SetWindowText(strMessage);
	m_pr.SetPos(iPos);
}

void CDlgpro::Close(CString strWindowCaption)
{
	SetWindowText(strWindowCaption);
	SendMessage(WM_CLOSE);
	DestroyWindow();
}

⌨️ 快捷键说明

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