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
webapp.h
Package: shell.rar [view]
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 2k
Category:
Windows Kernel
Development Platform:
Visual C++
- //////////////////////////////////////////////////////////////////////////
- //
- // webapp.h
- //
- // The purpose of this application is to demonstrate how a C++
- // application can host IE4, and manipulate the OC vtable.
- //
- // This file contains the specification of the WebApp class.
- //
- // (C) Copyright 1997 by Microsoft Corporation. All rights reserved.
- //
- //////////////////////////////////////////////////////////////////////////
- #ifndef _WEBAPP_H_
- #define _WEBAPP_H_
- #include <exdisp.h>
- #include <mshtml.h>
- #include "container.h"
- class CEventSink;
- class CWebApp
- {
- private:
- HINSTANCE m_hInstance; // application instance
- HWND m_hwnd; // window handle
- CContainer *m_pContainer; // container object
- IWebBrowser2 *m_pweb; // IE4 IWebBrowser interface pointer
- public:
- CWebApp();
- BOOL Register(HINSTANCE hInstance);
- void InitializeData();
- void Create();
- void MessageLoop();
- private:
- static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
- // Window Messages
- void OnCreate(HWND hwnd);
- void OnDestroy();
- void OnSize(int width, int height);
- void OnKeyDown(UINT msg, WPARAM wParam, LPARAM lParam);
- void OnSetFocus(HWND hwndLose);
- void OnExit();
- void OnRelease();
- // Calls to IE4 WebOC
- void Navigate(BSTR url);
- };
- #endif