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
STATUSBARVIEW.CPP
Package: x_status_demo [view]
Upload User: bjaaa555
Upload Date: 2013-01-31
Package Size: 40k
Code Size: 2k
Category:
StatusBar
Development Platform:
Visual C++
- #include "stdafx.h"
- #include "StatusBar.h"
- #include "StatusBarDoc.h"
- #include "StatusBarView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- IMPLEMENT_DYNCREATE(CStatusBarView, CView)
- BEGIN_MESSAGE_MAP(CStatusBarView, CView)
- //{{AFX_MSG_MAP(CStatusBarView)
- // HINWEIS - Hier werden Mapping-Makros vom Klassen-Assistenten eingef黦t und entfernt.
- // Innerhalb dieser generierten Quelltextabschnitte NICHTS VER腘DERN!
- //}}AFX_MSG_MAP
- // Standard-Druckbefehle
- ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
- END_MESSAGE_MAP()
- CStatusBarView::CStatusBarView() { }
- CStatusBarView::~CStatusBarView() { }
- BOOL CStatusBarView::PreCreateWindow(CREATESTRUCT& cs) { return CView::PreCreateWindow(cs); }
- void CStatusBarView::OnDraw(CDC* pDC)
- {
- CStatusBarDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- CRect rect(0, 0, 1000, 1000);
- pDC->DrawText( "The panes are defined as follows:nn"
- "Pane 0: Message Pane (Mode: Text, Left: Scrollbar, Right: toggle to Bitmap-Mode)n"
- "Pane 1: COUNT (Mode: Number, Left: increase, Right: decrease)n"
- "Pane 2: CAPS (Mode: Text, Left: HScroll on/off, Right: VScroll on/off)n"
- "Pane 3: NUM (Mode: Text, Left: change fontsize, Right: change fontname)n"
- "Pane 4: INSERT (Mode: Bitmap,Repeat, Left: HScroll on/off, Right: VScroll on/off)n"
- "Pane 5: SCROLL (Mode: Bitmap,Stretch, Left: Counter, Right: Smooth scrollbarnnn"
- "When you doubleclick the panes, the appearance of the pane changes. There aren"
- "different actions if you use the left or the right mousebutton.",
- rect, DT_LEFT | DT_TOP);
- }
- BOOL CStatusBarView::OnPreparePrinting(CPrintInfo* pInfo) { return DoPreparePrinting(pInfo); }
- void CStatusBarView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) {}
- void CStatusBarView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) {}
- #ifdef _DEBUG
- void CStatusBarView::AssertValid() const { CView::AssertValid(); }
- void CStatusBarView::Dump(CDumpContext& dc) const { CView::Dump(dc); }
- CStatusBarDoc* CStatusBarView::GetDocument()
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CStatusBarDoc)));
- return (CStatusBarDoc*)m_pDocument;
- }
- #endif //_DEBUG