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
UiCursor.h
Package: SwordOnline.rar [view]
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 1k
Category:
Game Server Simulator
Development Platform:
C/C++
- /*****************************************************************************************
- // 鼠标指针窗口
- // Copyright : Kingsoft 2002
- // Author : Wooy(Wu yue)
- // CreateTime: 2002-8-17
- ------------------------------------------------------------------------------------------
- *****************************************************************************************/
- #pragma once
- #include "UiImage.h"
- #define KUI_USE_HARDWARE_MOUSE 1
- //#undef KUI_USE_HARDWARE_MOUSE
- #define MAX_CURSOR_IMAGE 16
- class KUiCursor
- {
- public:
- void Show(int bShow); //设置鼠标指针的显示状态
- void SetPosition(int h, int v); //设置鼠标指针位置
- void GetPosition(int& h, int& v); //获取鼠标指针位置
- void SetImage(int nIndex, const char* pImgFile); //载入鼠标指针图形
- int SwitchImage(int nIndex); //切换当前鼠标指针图形
- void RestoreCursor(); //重新激活鼠标
- void Paint(); //绘制鼠标指针
- void Cleanup(); //清空全部资源
- KUiCursor();
- ~KUiCursor();
- private:
- int m_bShow;
- int m_nCurImage;
- int m_nPositionH;
- int m_nPositionV;
- #ifdef KUI_USE_HARDWARE_MOUSE
- HCURSOR m_CursorImages[MAX_CURSOR_IMAGE];
- #else // KUI_USE_HARDWARE_MOUSE
- KUiImageRef m_CursorImages[MAX_CURSOR_IMAGE];
- int m_nHotspotH;
- int m_nHotspotV;
- #endif
- };