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
DIBLIST.CPP
Package: SNMP_source.rar [view]
Upload User: lvjun8202
Upload Date: 2013-04-30
Package Size: 797k
Code Size: 1k
Category:
SNMP
Development Platform:
C/C++
- // DibList.cpp: implementation of the CDibList class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "OAM.h"
- #include "DibList.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CDibList::CDibList()
- {
- m_nEveryCx = m_nEveryCy = 0;
- }
- CDibList::~CDibList()
- {
- }
- BOOL CDibList::Load(LPCSTR strFileName,int nImages,COLORREF bkClr)
- {
- DeleteImageList();
- m_nEveryCx = m_nEveryCy = 0;
- HBITMAP hBitmap;
- hBitmap = (HBITMAP)LoadImage(AfxGetInstanceHandle(),strFileName,
- IMAGE_BITMAP,0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION);
- if(hBitmap == NULL)
- return FALSE;
- BITMAP bm;
- CBitmap * pBitmap = CBitmap::FromHandle(hBitmap);
- GetObject(hBitmap,sizeof(BITMAP),&bm);
- if(Create(bm.bmWidth/nImages, bm.bmHeight, ILC_COLORDDB|ILC_MASK, nImages, 1)
- && Add(pBitmap, bkClr) != -1)
- {
- m_nEveryCx = bm.bmWidth/nImages;
- m_nEveryCy = bm.bmHeight;
- return TRUE;
- }
- return FALSE;
- }
- CSize CDibList::GetEverySize()
- {
- return CSize(m_nEveryCx,m_nEveryCy);
- }
- void CDibList::DrawEx(CDC *pdc, int nImage, CRect rect, UINT nStyle)
- {
- }