📄 dlgpro.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -