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
EGPropertyGridItemStatic.cpp
Package: solidgraph_sources.zip [view]
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 2k
Category:
Graph program
Development Platform:
Visual C++
- // PropTreeItemStatic.cpp
- //
- // Copyright (C) 1998-2001 Scott Ramsay
- // sramsay@gonavi.com
- // http://www.gonavi.com
- //
- // This material is provided "as is", with absolutely no warranty expressed
- // or implied. Any use is at your own risk.
- //
- // Permission to use or copy this software for any purpose is hereby granted
- // without fee, provided the above notices are retained on all copies.
- // Permission to modify the code and to distribute modified code is granted,
- // provided the above notices are retained, and a notice that the code was
- // modified is included with the above copyright notice.
- //
- // If you use this code, drop me an email. I'd like to know if you find the code
- // useful.
- #include "stdafx.h"
- #include "EGPropertyGrid.h"
- #include "EGPropertyGridItemStatic.h"
- CEGPropertyGridItemStatic::CEGPropertyGridItemStatic() :
- m_sAttribute(_T(""))
- {
- }
- CEGPropertyGridItemStatic::~CEGPropertyGridItemStatic()
- {
- }
- void CEGPropertyGridItemStatic::DrawAttribute(CDC* pDC, const RECT& rc)
- {
- ASSERT(m_pProp!=NULL);
- pDC->SelectObject(m_pProp->GetNormalFont());
- pDC->SetTextColor(RGB(0,0,0));
- pDC->SetBkMode(TRANSPARENT);
- CRect r = rc;
- pDC->DrawText(m_sAttribute, r, DT_SINGLELINE|DT_VCENTER);
- }
- LPARAM CEGPropertyGridItemStatic::GetItemValue()
- {
- return (LPARAM)(LPCTSTR)m_sAttribute;
- }
- void CEGPropertyGridItemStatic::SetItemValue(LPARAM lParam)
- {
- if (lParam==0L)
- {
- TRACE0("CEGPropertyGridItemStatic::SetItemValue() - Invalid lParam valuen");
- return;
- }
- m_sAttribute = (LPCTSTR)lParam;
- }