- 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
COMMBAND.H
Package: MSDN_VC98.zip [view]
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 3k
Category:
Windows Develop
Development Platform:
Visual C++
- /**************************************************************************
- THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
- ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
- PARTICULAR PURPOSE.
- Copyright 1997 - 1998 Microsoft Corporation. All Rights Reserved.
- **************************************************************************/
- /**************************************************************************
- File: CommBand.h
- Description: CCommBand definitions.
- **************************************************************************/
- #include <windows.h>
- #include <shlobj.h>
- #include "Globals.h"
- #ifndef COMMBAND_H
- #define COMMBAND_H
- #define CB_CLASS_NAME (TEXT("CommBandSampleClass"))
- #define IDM_COMMAND 0
- /**************************************************************************
- CCommBand class definition
- **************************************************************************/
- class CCommBand : public IDeskBand,
- public IInputObject,
- public IObjectWithSite,
- public IPersistStream,
- public IContextMenu
- {
- protected:
- DWORD m_ObjRefCount;
- public:
- CCommBand();
- ~CCommBand();
- //IUnknown methods
- STDMETHODIMP QueryInterface(REFIID, LPVOID*);
- STDMETHODIMP_(DWORD) AddRef();
- STDMETHODIMP_(DWORD) Release();
- //IOleWindow methods
- STDMETHOD (GetWindow) (HWND*);
- STDMETHOD (ContextSensitiveHelp) (BOOL);
- //IDockingWindow methods
- STDMETHOD (ShowDW) (BOOL fShow);
- STDMETHOD (CloseDW) (DWORD dwReserved);
- STDMETHOD (ResizeBorderDW) (LPCRECT prcBorder, IUnknown* punkToolbarSite, BOOL fReserved);
- //IDeskBand methods
- STDMETHOD (GetBandInfo) (DWORD, DWORD, DESKBANDINFO*);
- //IInputObject methods
- STDMETHOD (UIActivateIO) (BOOL, LPMSG);
- STDMETHOD (HasFocusIO) (void);
- STDMETHOD (TranslateAcceleratorIO) (LPMSG);
- //IObjectWithSite methods
- STDMETHOD (SetSite) (IUnknown*);
- STDMETHOD (GetSite) (REFIID, LPVOID*);
- //IPersistStream methods
- STDMETHOD (GetClassID) (LPCLSID);
- STDMETHOD (IsDirty) (void);
- STDMETHOD (Load) (LPSTREAM);
- STDMETHOD (Save) (LPSTREAM, BOOL);
- STDMETHOD (GetSizeMax) (ULARGE_INTEGER*);
- //IContextMenu methods
- STDMETHOD (QueryContextMenu)(HMENU, UINT, UINT, UINT, UINT);
- STDMETHOD (InvokeCommand)(LPCMINVOKECOMMANDINFO);
- STDMETHOD (GetCommandString)(UINT, UINT, LPUINT, LPSTR, UINT);
- private:
- BOOL m_bFocus;
- HWND m_hwndParent;
- HWND m_hWnd;
- DWORD m_dwViewMode;
- DWORD m_dwBandID;
- IInputObjectSite *m_pSite;
- private:
- void FocusChange(BOOL);
- LRESULT OnKillFocus(void);
- LRESULT OnSetFocus(void);
- static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam);
- LRESULT OnPaint(void);
- LRESULT OnCommand(WPARAM wParam, LPARAM lParam);
- BOOL RegisterAndCreateWindow(void);
- };
- #endif //COMMBAND_H