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
ButtonST.h
Package: DPAU.rar [view]
Upload User: szluye
Upload Date: 2022-04-24
Package Size: 58k
Code Size: 2k
Category:
Special Effects
Development Platform:
Visual C++
- #if !defined(AFX_BUTTONST_H__A3483D87_0905_4A27_96DE_68967096DD5C__INCLUDED_)
- #define AFX_BUTTONST_H__A3483D87_0905_4A27_96DE_68967096DD5C__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ButtonST.h : header file
- #define RWIDTH(x) x.right-x.left
- #define RHIGHT(x) x.bottom-x.top
- #define MAX_PATHLEN 512
- /////////////////////////////////////////////////////////////////////////////
- // CButtonST window
- class CButtonST : public CButton
- {
- // Construction
- public:
- CButtonST();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CButtonST)
- public:
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- protected:
- virtual void PreSubclassWindow();
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CButtonST();
- void InitMemCDC(CDC *pDC,CRect bRect);
- void SetBitmapID(int nID,CDC *pParentDC);
- void SetFlat(BOOL bState);
- void SetOwnerStyle(LONG lStyle);
- void SetImageFile(char *szFilename);
- void ImageOpen(CDC *pDC,char *szFilename);
- void DrawTransparentBitmap(CDC *pDC,UINT IDImage,CRect &rect,COLORREF rgbMask);
- BOOL bInitialCDC;
- CDC *pBtnDC;
- int mBitmapID;
- CDC *pBKDC; //背景层
- CDC m_BuffDC; //缓存层
- BOOL m_bIsFlat;
- BOOL m_bImage;
- LONG lBStyle;
- TCHAR szImageFileName[MAX_PATHLEN];
- CFont m_Font;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CButtonST)
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_BUTTONST_H__A3483D87_0905_4A27_96DE_68967096DD5C__INCLUDED_)