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
XColorStatic.h
Package: MiniCA2.rar [view]
Upload User: dengkfang
Upload Date: 2008-12-30
Package Size: 5233k
Code Size: 2k
Category:
CA program
Development Platform:
Visual C++
- // XColorStatic.h Version 1.0
- //
- // Author: Hans Dietrich
- // hdietrich2@hotmail.com
- //
- // This software is released into the public domain.
- // You are free to use it in any way you like.
- //
- // This software is provided "as is" with no expressed
- // or implied warranty. I accept no liability for any
- // damage or loss of business that this software may cause.
- //
- ///////////////////////////////////////////////////////////////////////////////
- #ifndef XCOLORSTATIC_H
- #define XCOLORSTATIC_H
- /////////////////////////////////////////////////////////////////////////////
- // CXColorStatic window
- class CXColorStatic : public CStatic
- {
- // Construction
- public:
- CXColorStatic();
- virtual ~CXColorStatic();
- // Attributes
- public:
- void SetBackgroundColor(COLORREF rgb, BOOL bRedraw = TRUE);
- void SetTextColor(COLORREF rgb, BOOL bRedraw = TRUE);
- void SetBold(BOOL bFlag, BOOL bRedraw = TRUE);
- void SetFont(LPCTSTR lpszFaceName, int nPointSize, BOOL bRedraw = TRUE);
- void SetFont(LOGFONT * pLogFont, BOOL bRedraw = TRUE);
- void SetFont(CFont *pFont, BOOL bRedraw = TRUE);
- void SetIcon(HICON hIcon, BOOL bRedraw = TRUE);
- void SetMargins(int x, int y) { m_nXMargin = x; m_nYMargin = y; }
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CXColorStatic)
- protected:
- virtual void PreSubclassWindow();
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- CFont m_font;
- COLORREF m_rgbText;
- COLORREF m_rgbBackground;
- CBrush * m_pBrush;
- BOOL m_bBold;
- int m_nXMargin, m_nYMargin;
- HICON m_hIcon;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CXColorStatic)
- afx_msg void OnPaint();
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif //XCOLORSTATIC_H