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
STATUSBAR.CPP
Package: x_status_demo [view]
Upload User: bjaaa555
Upload Date: 2013-01-31
Package Size: 40k
Code Size: 3k
Category:
StatusBar
Development Platform:
Visual C++
- #include "stdafx.h"
- #include "StatusBar.h"
- #include "MainFrm.h"
- #include "StatusBarDoc.h"
- #include "StatusBarView.h"
- #include "XPaneText.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- BEGIN_MESSAGE_MAP(CStatusBarApp, CWinApp)
- //{{AFX_MSG_MAP(CStatusBarApp)
- ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
- ON_COMMAND(ID_TEST, OnTest)
- //}}AFX_MSG_MAP
- // Dateibasierte Standard-Dokumentbefehle
- ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
- ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
- // Standard-Druckbefehl "Seite einrichten"
- ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup)
- END_MESSAGE_MAP()
- CStatusBarApp::CStatusBarApp() { }
- CStatusBarApp theApp;
- BOOL CStatusBarApp::InitInstance()
- {
- AfxEnableControlContainer();
- #ifdef _AFXDLL
- Enable3dControls();
- #else
- Enable3dControlsStatic();
- #endif
- SetRegistryKey(_T("Local AppWizard-Generated Applications"));
- LoadStdProfileSettings();
- CSingleDocTemplate* pDocTemplate;
- pDocTemplate = new CSingleDocTemplate(
- IDR_MAINFRAME,
- RUNTIME_CLASS(CStatusBarDoc),
- RUNTIME_CLASS(CMainFrame),
- RUNTIME_CLASS(CStatusBarView));
- AddDocTemplate(pDocTemplate);
- CCommandLineInfo cmdInfo;
- ParseCommandLine(cmdInfo);
- if (!ProcessShellCommand(cmdInfo)) return FALSE;
- m_pMainWnd->ShowWindow(SW_SHOW);
- m_pMainWnd->UpdateWindow();
- return TRUE;
- }
- class CAboutDlg : public CDialog
- {
- public:
- CAboutDlg();
- //{{AFX_DATA(CAboutDlg)
- enum { IDD = IDD_ABOUTBOX };
- //}}AFX_DATA
- //{{AFX_VIRTUAL(CAboutDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV-Unterst黷zung
- //}}AFX_VIRTUAL
- // Implementierung
- protected:
- //{{AFX_MSG(CAboutDlg)
- // Keine Nachrichten-Handler
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
- {
- //{{AFX_DATA_INIT(CAboutDlg)
- //}}AFX_DATA_INIT
- }
- void CAboutDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CAboutDlg)
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
- //{{AFX_MSG_MAP(CAboutDlg)
- // Keine Nachrichten-Handler
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- // Anwendungsbefehl, um das Dialogfeld aufzurufen
- void CStatusBarApp::OnAppAbout()
- {
- CAboutDlg aboutDlg;
- aboutDlg.DoModal();
- }
- void CStatusBarApp::OnTest()
- {
- XPaneText t1("The text in all panes are visible until you close the dialog");
- XPaneText t2("P1", 1);
- XPaneText t3("P2", 2);
- XPaneText t4("P3", 3);
- XPaneText t5("P4", 4);
- XPaneText t6("P5", 5);
- CAboutDlg dlg;
- dlg.DoModal();
- }