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
OAMPAGERCTRL.CPP
Package: SNMP范例源代码.zip [view]
Upload User: shgx688
Upload Date: 2009-12-27
Package Size: 855k
Code Size: 2k
Category:
SNMP
Development Platform:
MultiPlatform
- // OAMPagerCtrl.cpp : implementation file
- //
- #include "stdafx.h"
- #include "OAM.h"
- #include "OAMPagerCtrl.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // COAMPagerCtrl
- COAMPagerCtrl::COAMPagerCtrl()
- {
- static BOOL bInit = FALSE;
- if (!bInit) {
- INITCOMMONCONTROLSEX sex;
- sex.dwSize = sizeof(INITCOMMONCONTROLSEX);
- sex.dwICC = ICC_PAGESCROLLER_CLASS|ICC_BAR_CLASSES;
- ::InitCommonControlsEx(&sex);
- bInit = TRUE;
- }
- }
- COAMPagerCtrl::~COAMPagerCtrl()
- {
- }
- BEGIN_MESSAGE_MAP(COAMPagerCtrl, CWnd)
- //{{AFX_MSG_MAP(COAMPagerCtrl)
- ON_NOTIFY_REFLECT_EX(PGN_SCROLL, OnPagerScroll)
- ON_NOTIFY_REFLECT_EX(PGN_CALCSIZE, OnPagerCalcSize)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- BOOL COAMPagerCtrl::Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID)
- {
- return CWnd::Create(WC_PAGESCROLLER, NULL,
- dwStyle, CRect(0,0,0,0), pParentWnd, nID);
- }
- /////////////////////////////////////////////////////////////////////////////
- // COAMPagerCtrl message handlers
- BOOL COAMPagerCtrl::OnPagerCalcSize(NMPGCALCSIZE* pNMPGCalcSize, LRESULT* pResult)
- {
- switch(pNMPGCalcSize->dwFlag)
- {
- case PGF_CALCWIDTH:
- pNMPGCalcSize->iWidth = m_nWidth;
- break;
- case PGF_CALCHEIGHT:
- pNMPGCalcSize->iHeight = m_nHeight;
- break;
- }
- *pResult = 0;
- return FALSE; // Let parent handle message
- }
- BOOL COAMPagerCtrl::OnPagerScroll(NMPGSCROLL* pNMPGScroll, LRESULT* pResult)
- {
- *pResult = 0;
- return FALSE; // Let parent handle message
- }