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
PeeperClient.cpp
Package: TOUKUI-1.5.zip [view]
Upload User: xztxsm
Upload Date: 2007-02-12
Package Size: 150k
Code Size: 3k
Category:
Remote Control
Development Platform:
Visual C++
- #include "stdafx.h"
- #include "PeeperClient.h"
- #include "PeeperFrm.h"
- #include "PeeperClientDoc.h"
- #include "PeeperWnd.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- BEGIN_MESSAGE_MAP(CPeeperClientApp, CWinApp)
- //{{AFX_MSG_MAP(CPeeperClientApp)
- ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
- //}}AFX_MSG_MAP
- ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
- ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
- END_MESSAGE_MAP()
- CPeeperClientApp::CPeeperClientApp()
- {
- }
- CPeeperClientApp theApp;
- BOOL CPeeperClientApp::InitInstance()
- {
- CMultiDocTemplate* pDocTemplate;
- pDocTemplate = new CMultiDocTemplate(
- IDR_PEEPERTYPE,
- RUNTIME_CLASS(CPeeperClientDoc),
- RUNTIME_CLASS(CChildFrame),
- RUNTIME_CLASS(CPeeperWnd)/*使用自己的Window*/);
- AddDocTemplate(pDocTemplate);
- CMainFrame* pMainFrame = new CMainFrame;
- if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
- return FALSE;
- m_pMainWnd = pMainFrame;
- pMainFrame->PeeperClientMenuAttach(pDocTemplate->m_hMenuShared);
- pMainFrame->PeeperMenuAttach(pMainFrame->m_hMenuDefault);
- CCommandLineInfo cmdInfo;
- ParseCommandLine(cmdInfo);
- cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
- if (!ProcessShellCommand(cmdInfo))
- return FALSE;
- pMainFrame->ShowWindow(m_nCmdShow);
- pMainFrame->UpdateWindow();
- return TRUE;
- }
- 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)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- void CPeeperClientApp::OnAppAbout()
- {
- CAboutDlg aboutDlg;
- aboutDlg.DoModal();
- }
- BOOL CAboutDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- SetDlgItemText(IDC_EDIT_EMAIL, _T("dongfa@yeah.net"));
- CString strVer;
- GetDlgItemText(IDC_STATIC_VER, strVer);
- strVer += CPeeperWnd::GetClientVersion();
- SetDlgItemText(IDC_STATIC_VER, strVer);
- return TRUE;
- }
- CRegisterDlg::CRegisterDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CRegisterDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CRegisterDlg)
- //}}AFX_DATA_INIT
- }
- void CRegisterDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CRegisterDlg)
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CRegisterDlg, CDialog)
- //{{AFX_MSG_MAP(CRegisterDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- void CRegisterDlg::OnOK()
- {
- GetDlgItemText(IDC_EDIT_USER, m_strUserName);
- GetDlgItemText(IDC_EDIT_CODE, m_strCode);
- CDialog::OnOK();
- }
- BOOL CRegisterDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- CString strListen;
- strListen.LoadString(IDS_LISTEN);
- SetDlgItemText(IDC_EDIT_LISTEN, strListen);
- return TRUE;
- }