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

📄 horsewnd.cpp

📁 传奇2客户端源码
💻 CPP
字号:
/******************************************************************************************************************
                                                                                                                   
	葛碘疙:																											
																													
	累己磊:																											
	累己老:																											
																													
	[老磊][荐沥磊] : 荐沥 郴侩																						
                                                                                                                   
*******************************************************************************************************************/



#include "StdAfx.h"


CHorseWnd::CHorseWnd()
{
	Init();
}

CHorseWnd::~CHorseWnd()
{
	Destroy();
}

VOID CHorseWnd::Init()
{
	CGameWnd::Init();

	m_xHorseBtn.Init();
}

VOID CHorseWnd::Destroy()
{
	CGameWnd::Destroy();
}

VOID CHorseWnd::CreateHorseWnd(INT nID, CWHWilImageData* pxWndImage, INT nFrameImgIdx, INT nStartX, INT nStartY, INT nWidth, INT nHeight, BOOL bCanMove)
{
	CreateGameWnd(nID, pxWndImage, nFrameImgIdx, bCanMove, nStartX, nStartY, nWidth, nHeight);
	m_xHorseBtn.CreateGameBtn(pxWndImage, 630, 631, nStartX+567, nStartY+413);
}

VOID CHorseWnd::ShowHorseWnd()
{
	ShowGameWnd();
	m_xHorseBtn.ShowGameBtn();
}

BOOL CHorseWnd::OnLButtonUp(POINT ptMouse)
{
	if ( m_xHorseBtn.OnLButtonUp(ptMouse) )		return TRUE;

	return FALSE;
}

BOOL CHorseWnd::OnLButtonDown(POINT ptMouse)
{
	if ( m_xHorseBtn.OnLButtonDown(ptMouse) )		return TRUE;

	return FALSE;
}

VOID CHorseWnd::OnMouseMove(POINT ptMouse)
{
	m_xHorseBtn.ChangeRect(m_rcWnd.left+567, m_rcWnd.top+413);
	m_xHorseBtn.OnMouseMove(ptMouse);
}

VOID CHorseWnd::SetStatusBtnInit()
{
	m_xHorseBtn.SetBtnState(_BTN_STATE_NORMAL);
}

⌨️ 快捷键说明

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