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
ColorCtrl.cpp
Package: 视频会议系统.rar [view]
Upload User: popouu88
Upload Date: 2013-02-11
Package Size: 2894k
Code Size: 1k
Category:
VOIP program
Development Platform:
Visual C++
- // ColorCtrl.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ColorCtrl.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CColorCtrl
- CColorCtrl::CColorCtrl()
- {
- this->color = RGB( 0 , 0 , 0 );
- }
- CColorCtrl::~CColorCtrl()
- {
- }
- BEGIN_MESSAGE_MAP(CColorCtrl, CStatic)
- //{{AFX_MSG_MAP(CColorCtrl)
- ON_WM_PAINT()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CColorCtrl message handlers
- void CColorCtrl::SetColor( COLORREF color )
- {
- this->color = color;
- this->Invalidate( );
- }
- void CColorCtrl::OnPaint()
- {
- CPaintDC dc( this );
- CRect rc;
- this->GetClientRect( &rc );
- dc.FillSolidRect( &rc , this->color );
- }