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
WndPureTextBtn.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 2003
- // Author : Wooy(Wu yue)
- // CreateTime: 2003-1-19
- ------------------------------------------------------------------------------------------
- *****************************************************************************************/
- #pragma once
- #include "WndWindow.h"
- #define WNDPTB_MAX_TEXT_LEN 64
- #define WNDPTB_S_CENTRE_ALIGN 0x00008000
- #define WNDPTB_F_BE_PRESSEDDOWN 0x00000001
- #define WNDPTB_F_OVER 0x00000002
- #define WNDPTB_F_CHECK 0x00000004
- class KWndPureTextBtn : public KWndWindow
- {
- public:
- KWndPureTextBtn();
- virtual int Init(KIniFile* pIniFile, const char* pSection); //初始化
- virtual void PaintWindow(); //绘制窗口
- void SetText(const char* pText, int nLen = -1); //设置文本文字
- virtual int WndProc(unsigned int uMsg, unsigned int uParam, int nParam);//窗口函数
- void CheckButton(int bChecked);
- void Clone(KWndPureTextBtn* pCopy);
- private:
- void AdjustPosition();
- private:
- unsigned int m_Flag;
- char m_sText[WNDPTB_MAX_TEXT_LEN];
- int m_nTextLen; //字符串的存储长度
- unsigned int m_NormalColor;
- unsigned int m_OverColor;
- unsigned int m_PressedColor;
- unsigned int m_NormalBorderColor;
- unsigned int m_OverBorderColor;
- unsigned int m_PressedBorderColor;
- int m_nFontSize;
- };