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
MPCStatusBar.h
Package: MPCStatusBar.zip [view]
Upload User: rubberdam
Upload Date: 2007-01-10
Package Size: 43k
Code Size: 2k
Category:
StatusBar
Development Platform:
Visual C++
- //
- // MPCStatusBar.cpp
- //
- // (c) Pierre MELLINAND
- //
- // History
- // --------
- // v 1.0
- // June 1998: Created classes with names starting with XFX...
- // v 1.1
- // October 19, 1999 void MPCStatusBar::RemovePane(int nPaneID) added
- // BOOL MPCStatusBar::AddIndicator( int position, UINT paneID )
- // corrected bug (std text disappeared when AddIndicator called)
- // BOOL MPCStatusBar::GetStatusPane(int nIndex, MPCStatusBarPane & xfxpane)
- // GetPaneText( ) wasnt called
- // Renamed classes with prefix MPC..
- // Added parameter 'BOOL bAutodeleteControl' to method AddControl()
- //
- #ifndef MPCStatusBar_h_
- #define MPCStatusBar_h_
- #include <afxtempl.h>
- ///////////////////////////////////////////////////////////////////////////////////
- // MPCStatusBarPaneControlInfo
- class MPCStatusBarPaneControlInfo:public CObject
- {
- DECLARE_DYNCREATE(MPCStatusBarPaneControlInfo)
- public:
- CWnd * m_hWnd;
- int m_nPaneID;
- BOOL m_bAutodelete;
- MPCStatusBarPaneControlInfo();
- };
- ///////////////////////////////////////////////////////////////////////////////////
- // MPCStatusBarPaneControlInfo
- class MPCStatusBarPane: public CObject
- {
- public:
- UINT nID;
- int cxText;
- UINT nStyle;
- UINT nFlags;
- CString strText;
- MPCStatusBarPane ( MPCStatusBarPane & xfxpane );
- MPCStatusBarPane& operator=(MPCStatusBarPane& xfxpane);
- MPCStatusBarPane();
- } ;
- ///////////////////////////////////////////////////////////////////////////////////
- // MPCStatusBar
- class MPCStatusBar:public CStatusBar
- {
- DECLARE_DYNCREATE(MPCStatusBar)
- private:
- CArray<MPCStatusBarPaneControlInfo*, MPCStatusBarPaneControlInfo*> m_aPans;
- public:
- void PositionControls();
- ~MPCStatusBar();
- MPCStatusBarPaneControlInfo * GetPanControl(int nPaneID);
- BOOL AddControl(CWnd * pWnd, int nPaneID, BOOL bAutodeleteControl = TRUE );
- void SetPaneWidth(int index, int cxWidth);
- BOOL AddIndicator( int position, UINT paneID);
- BOOL GetStatusPane(int nIndex, MPCStatusBarPane & xfxpane);
- void RemovePane(int nPaneID);
- //{{AFX_MSG(MPCStatusPane)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #endif