⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 waitprogress.cpp

📁 网络游戏龙族服务器端管理工具 rmtool 源代码
💻 CPP
字号:
// WaitProgress.cpp : implementation file
//

#include "stdafx.h"
#include "rmtool.h"
#include "WaitProgress.h"

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

/////////////////////////////////////////////////////////////////////////////
// CWaitProgress dialog


CWaitProgress::CWaitProgress(CWnd* pParent /*=NULL*/)
	: CDialog(CWaitProgress::IDD, pParent)
{
	//{{AFX_DATA_INIT(CWaitProgress)
	//}}AFX_DATA_INIT

	m_nActivate = 0;
}


void CWaitProgress::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CWaitProgress)
	DDX_Control(pDX, IDC_PROG, c_Prog);
	DDX_Control(pDX, IDC_COMMENT_PROG, c_ProgComment);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CWaitProgress, CDialog)
	//{{AFX_MSG_MAP(CWaitProgress)
	ON_WM_LBUTTONDOWN()
	ON_WM_TIMER()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CWaitProgress message handlers

BOOL CWaitProgress::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here



	

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CWaitProgress::OnLButtonDown(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	PostMessage(WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM( point.x, point.y));
	CDialog::OnLButtonDown(nFlags, point);
}

void CWaitProgress::SetSnakeMode()
{
	c_ProgComment.SetTextColor(RGB(0,0,255),RGB(128,128,128)/*RGB(128,128,128)*/);//RGB(181,182,181));
	c_ProgComment.SetBkColor(RGB(228,228,228));
	c_ProgComment.SetGradientColorsX(3,RGB(228,228,228),RGB(172,172,255)/*RGB(255,20,0)*/,RGB(228,228,228));
	c_ProgComment.SetStep(6);
	c_ProgComment.SetRange(0,200);
	c_ProgComment.SetSnake();
	c_ProgComment.SetRubberBar();//kyo020315
	c_ProgComment.SetSnakeTail(60);
	CRect rect(1,1,1,1);
	c_ProgComment.SetBorders(&rect);
}

void CWaitProgress::OnTimer(UINT nIDEvent) 
{
	// TODO: Add your message handler code here and/or call default
	switch(nIDEvent)
	{
	case 1:
		{
			c_ProgComment.StepIt();
		}
		break;

	}
	CDialog::OnTimer(nIDEvent);
}

void CWaitProgress::StartKitAnimation()
{
	SetSnakeMode();
	SetTimer(1,55,0);
}

⌨️ 快捷键说明

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