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
UiShop.h
Package: SwordOnline.rar [view]
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 2k
Category:
Game Server Simulator
Development Platform:
C/C++
- // -------------------------------------------------------------------------
- // 文件名 : UiTrade.h
- // 创建者 : Wooy(Wu yue)
- // 创建时间 : 2002-12-21
- // 功能描述 : npc交易系统界面
- // -------------------------------------------------------------------------
- #pragma once
- #include "../Elem/WndShowAnimate.h"
- #include "../elem/wndbutton.h"
- #include "../Elem/WndText.h"
- #include "../elem/wndObjContainer.h"
- struct KUiObjAtContRegion;
- class KUiShop : protected KWndShowAnimate
- {
- public:
- //----界面面板统一的接口函数----
- static KUiShop* OpenWindow(); //打开窗口,返回唯一的一个类对象实例
- static KUiShop* GetIfVisible(); //如果窗口正被显示,则返回实例指针
- static void CloseWindow(); //关闭窗口,同时可以选则是否删除对象实例
- static void LoadScheme(const char* pScheme); //载入界面方案
- static void CancelTrade();
- void UpdateData();
- int WndProc(unsigned int uMsg, unsigned int uParam, int nParam);//窗口函数
- private:
- KUiShop();
- ~KUiShop() {}
- void SetPage(int nIndex);
- void Clear();
- void OnClickButton(KWndButton* pWnd, int bCheck);
- void OnBuyItem(KUiDraggedObject* pItem, bool bDoImmed);
- void Initialize(); //初始化
- private:
- static KUiShop* m_pSelf;
- private:
- KUiObjAtContRegion* m_pObjsList;
- int m_nObjCount;
- int m_nPageCount;
- int m_nCurrentPage;
- KWndObjectMatrix m_ItemsBox; //物品栏
- KWndButton m_BuyBtn;
- KWndButton m_SellBtn;
- KWndButton m_RepairBtn;
- KWndButton m_PreBtn;
- KWndButton m_NextBtn;
- KWndButton m_CloseBtn;
- };