Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ExchangeWnd.cpp
Package: Mir2ExCodev1.rar [view]
Upload User: cydong117
Upload Date: 2009-11-10
Package Size: 638k
Code Size: 2k
Category:
Game Server Simulator
Development Platform:
Visual C++
- /******************************************************************************************************************
- 葛碘疙:
- 累己磊:
- 累己老:
- [老磊][荐沥磊] : 荐沥 郴侩
- *******************************************************************************************************************/
- #include "StdAfx.h"
- CExchangeWnd::CExchangeWnd()
- {
- Init();
- }
- CExchangeWnd::~CExchangeWnd()
- {
- Destroy();
- }
- VOID CExchangeWnd::Init()
- {
- CGameWnd::Init();
- m_xExchangeBtn.Init();
- }
- VOID CExchangeWnd::Destroy()
- {
- CGameWnd::Destroy();
- }
- VOID CExchangeWnd::CreateExchangeWnd(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_xExchangeBtn.CreateGameBtn(pxWndImage, 280, 281, nStartX+255, nStartY+291);
- }
- VOID CExchangeWnd::ShowExchangeWnd()
- {
- ShowGameWnd();
- m_xExchangeBtn.ShowGameBtn();
- }
- VOID CExchangeWnd::OnMouseMove(POINT ptMouse)
- {
- m_xExchangeBtn.ChangeRect(m_rcWnd.left+567, m_rcWnd.top+413);
- m_xExchangeBtn.OnMouseMove(ptMouse);
- }
- BOOL CExchangeWnd::OnLButtonUp(POINT ptMouse)
- {
- if ( m_xExchangeBtn.OnLButtonUp(ptMouse) ) return TRUE;
- return FALSE;
- }
- BOOL CExchangeWnd::OnLButtonDown(POINT ptMouse)
- {
- if ( m_xExchangeBtn.OnLButtonDown(ptMouse) ) return TRUE;
- return FALSE;
- }
- VOID CExchangeWnd::SetStatusBtnInit()
- {
- m_xExchangeBtn.SetBtnState(_BTN_STATE_NORMAL);
- }