ReactOS  0.4.13-dev-249-gcba1a2f
internettoolbar.h
Go to the documentation of this file.
1 /*
2  * ReactOS Explorer
3  *
4  * Copyright 2009 Andrew Hill <ash77 at domain reactos.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 #pragma once
22 
23 static const int gSearchCommandID = 1003;
24 static const int gFoldersCommandID = 1004;
28 static const int gUndoCommandID = FCIDM_SHVIEW_UNDO;
30 static const int gStopCommandID = 1010;
31 static const int gHomeCommandID = 1012;
32 static const int gFavoritesCommandID = 1015;
33 static const int gHistoryCommandID = 1016;
34 static const int gFullScreenCommandID = 1017;
36 static const int gCutCommandID = FCIDM_SHVIEW_CUT;
37 static const int gCopyCommandID = FCIDM_SHVIEW_COPY;
39 
41  public CComObjectRootEx<CComMultiThreadModelNoCS>,
42  public IShellMenuCallback
43 {
44 private:
45  CComPtr<IShellMenu> fFavoritesMenu;
46 public:
47  CMenuCallback();
48  virtual ~CMenuCallback();
49 
51 public:
52  // *** IShellMenuCallback methods ***
54 
56  COM_INTERFACE_ENTRY_IID(IID_IShellMenuCallback, IShellMenuCallback)
58 };
59 
61  public CWindowImpl<CInternetToolbar, CWindow, CControlWinTraits>,
62  public CComCoClass<CInternetToolbar, &CLSID_InternetToolbar>,
63  public CComObjectRootEx<CComMultiThreadModelNoCS>,
64  public IInputObject,
65  public IDockingWindow,
66  public IPersistStreamInit,
67  public IOleCommandTarget,
68  public IDispatch,
69  public IExplorerToolbar,
70  public IShellChangeNotify,
71  public IObjectWithSite,
72  public IServiceProvider,
73  public IWinEventHandler,
74  public IBandSite
75 {
76 public:
77  CComPtr<IUnknown> fSite; // our site
78  HWND fMainReBar; // rebar for top of window
79  bool fLocked; // is bar locked to prevent changes?
80  CComPtr<IShellMenu> fMenuBar; // the menu rebar
83  CComPtr<IUnknown> fLogoBar; // the reactos logo
84  CComPtr<IUnknown> fControlsBar; // navigation controls
85  CComPtr<IUnknown> fNavigationBar; // address bar
86  CComPtr<CMenuCallback> fMenuCallback;
87  CComPtr<IOleCommandTarget> fCommandTarget;
91  CComPtr<IBandProxy> fBandProxy;
95 public:
97  virtual ~CInternetToolbar();
98  void AddDockItem(IUnknown *newItem, int bandID, int flags);
99  HRESULT ReserveBorderSpace(LONG maxHeight = -1);
100  HRESULT CreateMenuBar(IShellMenu **menuBar);
101  HRESULT CreateToolsBar(IUnknown **toolsBar);
102  HRESULT LockUnlockToolbars(bool locked);
103  HRESULT CommandStateChanged(bool newValue, int commandID);
105  HRESULT IsBandVisible(int BandID);
106  HRESULT ToggleBandVisibility(int BandID);
107  HRESULT SetState(const GUID *pguidCmdGroup, long commandID, OLECMD* pcmd);
108 
109 public:
110  // *** IInputObject specific methods ***
111  virtual HRESULT STDMETHODCALLTYPE UIActivateIO(BOOL fActivate, LPMSG lpMsg);
114 
115  // *** IOleWindow methods ***
116  virtual HRESULT STDMETHODCALLTYPE GetWindow(HWND *lphwnd);
118 
119  // *** IDockingWindow methods ***
120  virtual HRESULT STDMETHODCALLTYPE ShowDW(BOOL fShow);
122  virtual HRESULT STDMETHODCALLTYPE ResizeBorderDW(LPCRECT prcBorder, IUnknown *punkToolbarSite, BOOL fReserved);
123 
124  // *** IPersist methods ***
125  virtual HRESULT STDMETHODCALLTYPE GetClassID(CLSID *pClassID);
126 
127  // *** IPersistStreamInit methods ***
129  virtual HRESULT STDMETHODCALLTYPE Load(IStream *pStm);
130  virtual HRESULT STDMETHODCALLTYPE Save(IStream *pStm, BOOL fClearDirty);
133 
134  // *** IOleCommandTarget methods ***
135  virtual HRESULT STDMETHODCALLTYPE QueryStatus(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[ ], OLECMDTEXT *pCmdText);
136  virtual HRESULT STDMETHODCALLTYPE Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut);
137 
138  // *** IDispatch methods ***
140  virtual HRESULT STDMETHODCALLTYPE GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo);
141  virtual HRESULT STDMETHODCALLTYPE GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId);
142  virtual HRESULT STDMETHODCALLTYPE Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr);
143 
144  // *** IExplorerToolbar methods ***
145  virtual HRESULT STDMETHODCALLTYPE SetCommandTarget(IUnknown *theTarget, GUID *category, long param14);
147  virtual HRESULT STDMETHODCALLTYPE AddButtons(const GUID *pguidCmdGroup, long buttonCount, TBBUTTON *buttons);
148  virtual HRESULT STDMETHODCALLTYPE AddString(const GUID *pguidCmdGroup, HINSTANCE param10, LPCTSTR param14, long *param18);
149  virtual HRESULT STDMETHODCALLTYPE GetButton(const GUID *pguidCmdGroup, long param10, long param14);
150  virtual HRESULT STDMETHODCALLTYPE GetState(const GUID *pguidCmdGroup, long commandID, long *theState);
151  virtual HRESULT STDMETHODCALLTYPE SetState(const GUID *pguidCmdGroup, long commandID, long theState);
152  virtual HRESULT STDMETHODCALLTYPE AddBitmap(const GUID *pguidCmdGroup, long param10, long buttonCount, TBADDBITMAP *lParam, long *newIndex, COLORREF param20);
153  virtual HRESULT STDMETHODCALLTYPE GetBitmapSize(long *paramC);
154  virtual HRESULT STDMETHODCALLTYPE SendToolbarMsg(const GUID *pguidCmdGroup, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *result);
155  virtual HRESULT STDMETHODCALLTYPE SetImageList(const GUID *pguidCmdGroup, HIMAGELIST param10, HIMAGELIST param14, HIMAGELIST param18);
156  virtual HRESULT STDMETHODCALLTYPE ModifyButton(const GUID *pguidCmdGroup, long param10, long param14);
157 
158  // *** IShellChangeNotify methods ***
160 
161  // *** IObjectWithSite methods ***
162  virtual HRESULT STDMETHODCALLTYPE SetSite(IUnknown *pUnkSite);
163  virtual HRESULT STDMETHODCALLTYPE GetSite(REFIID riid, void **ppvSite);
164 
165  // *** IServiceProvider methods ***
166  virtual HRESULT STDMETHODCALLTYPE QueryService(REFGUID guidService, REFIID riid, void **ppvObject);
167 
168  // *** IWinEventHandler methods ***
171 
172  // *** IBandSite specific methods ***
173  virtual HRESULT STDMETHODCALLTYPE AddBand(IUnknown *punk);
174  virtual HRESULT STDMETHODCALLTYPE EnumBands(UINT uBand, DWORD *pdwBandID);
175  virtual HRESULT STDMETHODCALLTYPE QueryBand(DWORD dwBandID, IDeskBand **ppstb, DWORD *pdwState, LPWSTR pszName, int cchName);
176  virtual HRESULT STDMETHODCALLTYPE SetBandState(DWORD dwBandID, DWORD dwMask, DWORD dwState);
177  virtual HRESULT STDMETHODCALLTYPE RemoveBand(DWORD dwBandID);
178  virtual HRESULT STDMETHODCALLTYPE GetBandObject(DWORD dwBandID, REFIID riid, void **ppv);
179  virtual HRESULT STDMETHODCALLTYPE SetBandSiteInfo(const BANDSITEINFO *pbsinfo);
181 
182  // message handlers
183  LRESULT OnTravelBack(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled);
184  LRESULT OnTravelForward(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled);
185  LRESULT OnUpLevel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled);
186  LRESULT OnSearch(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled);
187  LRESULT OnFolders(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled);
188  LRESULT OnForwardToCommandTarget(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled);
189  LRESULT OnMenuDropDown(UINT idControl, NMHDR *pNMHDR, BOOL &bHandled);
190  LRESULT OnQueryInsert(UINT idControl, NMHDR *pNMHDR, BOOL &bHandled);
191  LRESULT OnQueryDelete(UINT idControl, NMHDR *pNMHDR, BOOL &bHandled);
194  LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
195  LRESULT OnSetCursor(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
196  LRESULT OnTipText(UINT idControl, NMHDR *pNMHDR, BOOL &bHandled);
197  LRESULT OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
198  LRESULT OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
199  LRESULT OnLDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
200  LRESULT OnLUp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
201  LRESULT OnMouseMove(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled);
203 
224  END_MSG_MAP()
225 
228 
230 
232  COM_INTERFACE_ENTRY_IID(IID_IInputObject, IInputObject)
234  COM_INTERFACE_ENTRY_IID(IID_IDockingWindow, IDockingWindow)
236 // COM_INTERFACE_ENTRY_IID(IID_IPersistStream, IPersistStream)
238  COM_INTERFACE_ENTRY_IID(IID_IOleCommandTarget, IOleCommandTarget)
240  COM_INTERFACE_ENTRY_IID(IID_IExplorerToolbar, IExplorerToolbar)
241  COM_INTERFACE_ENTRY_IID(IID_IShellChangeNotify, IShellChangeNotify)
243  COM_INTERFACE_ENTRY_IID(IID_IServiceProvider, IServiceProvider)
244  COM_INTERFACE_ENTRY_IID(IID_IWinEventHandler, IWinEventHandler)
245  COM_INTERFACE_ENTRY_IID(IID_IBandSite, IBandSite)
246  END_COM_MAP()
247 };
static const int gHistoryCommandID
#define FCIDM_SHVIEW_UNDO
Definition: shresdef.h:738
virtual HRESULT STDMETHODCALLTYPE QueryBand(DWORD dwBandID, IDeskBand **ppstb, DWORD *pdwState, LPWSTR pszName, int cchName)
virtual HRESULT STDMETHODCALLTYPE GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
virtual HRESULT STDMETHODCALLTYPE SetBandSiteInfo(const BANDSITEINFO *pbsinfo)
virtual HRESULT STDMETHODCALLTYPE AddString(const GUID *pguidCmdGroup, HINSTANCE param10, LPCTSTR param14, long *param18)
virtual HRESULT STDMETHODCALLTYPE IsWindowOwner(HWND hWnd)
#define REFIID
Definition: guiddef.h:113
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
#define IDM_GOTO_UPONELEVEL
Definition: resource.h:47
virtual HRESULT STDMETHODCALLTYPE AddButtons(const GUID *pguidCmdGroup, long buttonCount, TBBUTTON *buttons)
LRESULT OnQueryInsert(UINT idControl, NMHDR *pNMHDR, BOOL &bHandled)
virtual HRESULT STDMETHODCALLTYPE CloseDW(DWORD dwReserved)
#define IDM_GOTO_FORWARD
Definition: resource.h:46
#define WM_CONTEXTMENU
Definition: richedit.h:64
#define WM_LBUTTONDOWN
Definition: winuser.h:1752
#define FCIDM_SHVIEW_AUTOARRANGE
Definition: shresdef.h:750
Definition: scsiwmi.h:51
virtual HRESULT STDMETHODCALLTYPE GetWindow(HWND *lphwnd)
LRESULT OnNavigateCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
#define NOTIFY_HANDLER(id, cd, func)
Definition: atlwin.h:1861
REFIID riid
Definition: precomp.h:44
LRESULT OnWinIniChange(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HRESULT IsBandVisible(int BandID)
static const int gMoveToCommandID
virtual HRESULT STDMETHODCALLTYPE ResizeBorderDW(LPCRECT prcBorder, IUnknown *punkToolbarSite, BOOL fReserved)
LRESULT OnQueryDelete(UINT idControl, NMHDR *pNMHDR, BOOL &bHandled)
virtual HRESULT STDMETHODCALLTYPE CallbackSM(LPSMDATA psmd, UINT uMsg, WPARAM wParam, LPARAM lParam)
const GUID IID_IPersist
Definition: proxy.cpp:14
static const int gSearchCommandID
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
Definition: shtypes.idl:42
virtual HRESULT STDMETHODCALLTYPE SetCommandTarget(IUnknown *theTarget, GUID *category, long param14)
#define FCIDM_SHVIEW_COPYTO
Definition: shresdef.h:740
static const int gCutCommandID
HWND hWnd
Definition: settings.c:17
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define COMMAND_RANGE_HANDLER(idFirst, idLast, func)
Definition: atlwin.h:1843
virtual HRESULT STDMETHODCALLTYPE InitNew()
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:611
virtual HRESULT STDMETHODCALLTYPE AddBitmap(const GUID *pguidCmdGroup, long param10, long buttonCount, TBADDBITMAP *lParam, long *newIndex, COLORREF param20)
DWORD LCID
Definition: nls.h:13
UINT_PTR WPARAM
Definition: windef.h:207
virtual HRESULT STDMETHODCALLTYPE SendToolbarMsg(const GUID *pguidCmdGroup, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *result)
static LPOLESTR
Definition: stg_prop.c:27
LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
static const int gStopCommandID
virtual HRESULT STDMETHODCALLTYPE Unknown1()
#define FCIDM_SHVIEW_PROPERTIES
Definition: shresdef.h:734
WPARAM wParam
Definition: combotst.c:138
CComPtr< IUnknown > fLogoBar
#define IDM_GOTO_BACK
Definition: resource.h:45
HRESULT CreateToolsBar(IUnknown **toolsBar)
virtual HRESULT STDMETHODCALLTYPE GetClassID(CLSID *pClassID)
virtual HRESULT STDMETHODCALLTYPE Load(IStream *pStm)
CComPtr< CMenuCallback > fMenuCallback
virtual HRESULT STDMETHODCALLTYPE GetSizeMax(ULARGE_INTEGER *pcbSize)
_In_ PSID _Out_writes_to_opt_ cchName LPSTR _Inout_ LPDWORD cchName
Definition: winbase.h:2706
#define TBN_QUERYDELETE
Definition: commctrl.h:1285
HRESULT LockUnlockToolbars(bool locked)
virtual HRESULT STDMETHODCALLTYPE GetState(const GUID *pguidCmdGroup, long commandID, long *theState)
#define TBN_DROPDOWN
Definition: commctrl.h:1288
static const int gHomeCommandID
CComPtr< IUnknown > fControlsBar
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:90
LRESULT OnLDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
virtual HRESULT STDMETHODCALLTYPE UIActivateIO(BOOL fActivate, LPMSG lpMsg)
#define WM_SETCURSOR
Definition: winuser.h:1618
#define FCIDM_SHVIEW_INSERT
Definition: shresdef.h:737
HRESULT ReserveBorderSpace(LONG maxHeight=-1)
HRESULT STDMETHODCALLTYPE GetObject(LPSMDATA psmd, REFIID riid, void **ppvObject)
#define FCIDM_SHVIEW_MOVETO
Definition: shresdef.h:741
static const int gUndoCommandID
HRESULT SetState(const GUID *pguidCmdGroup, long commandID, OLECMD *pcmd)
virtual HRESULT STDMETHODCALLTYPE OnWinEvent(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult)
static const int gFoldersCommandID
#define WM_WININICHANGE
Definition: winuser.h:1612
LONG_PTR LPARAM
Definition: windef.h:208
virtual HRESULT STDMETHODCALLTYPE TranslateAcceleratorIO(LPMSG lpMsg)
#define COMMAND_ID_HANDLER(id, func)
Definition: atlwin.h:1825
virtual ~CMenuCallback()
virtual HRESULT STDMETHODCALLTYPE Save(IStream *pStm, BOOL fClearDirty)
virtual HRESULT STDMETHODCALLTYPE GetBitmapSize(long *paramC)
static const int gPropertiesCommandID
static const int gFullScreenCommandID
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:541
LRESULT OnTipText(UINT idControl, NMHDR *pNMHDR, BOOL &bHandled)
virtual HRESULT STDMETHODCALLTYPE QueryService(REFGUID guidService, REFIID riid, void **ppvObject)
#define FCIDM_SHVIEW_COPY
Definition: shresdef.h:736
LRESULT OnFolders(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
#define WM_SIZE
Definition: winuser.h:1593
LONG HRESULT
Definition: typedefs.h:77
#define END_MSG_MAP()
Definition: atlwin.h:1789
DWORD COLORREF
Definition: windef.h:285
virtual HRESULT STDMETHODCALLTYPE QueryStatus(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText)
virtual HRESULT STDMETHODCALLTYPE EnumBands(UINT uBand, DWORD *pdwBandID)
#define STDMETHODCALLTYPE
Definition: bdasup.h:9
const IID IID_IObjectWithSite
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
LRESULT OnForwardToCommandTarget(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
CComPtr< IUnknown > fSite
virtual HRESULT STDMETHODCALLTYPE AddBand(IUnknown *punk)
static const int gCopyCommandID
virtual HRESULT STDMETHODCALLTYPE RemoveBand(DWORD dwBandID)
GLbitfield flags
Definition: glext.h:7161
#define FCIDM_SHVIEW_DELETE
Definition: shresdef.h:733
virtual HRESULT STDMETHODCALLTYPE OnChange(LONG lEvent, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
const GUID IID_IDispatch
LRESULT OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
const GUID IID_IPersistStreamInit
CComPtr< IUnknown > fNavigationBar
virtual HRESULT STDMETHODCALLTYPE ContextSensitiveHelp(BOOL fEnterMode)
HANDLE lEvent
Definition: tftpd.cpp:56
static const int gViewsCommandID
LRESULT OnUpLevel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
CComPtr< IOleCommandTarget > fCommandTarget
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define WM_COMMAND
Definition: winuser.h:1716
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:605
LRESULT OnSetCursor(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
virtual HRESULT STDMETHODCALLTYPE ModifyButton(const GUID *pguidCmdGroup, long param10, long param14)
virtual HRESULT STDMETHODCALLTYPE GetButton(const GUID *pguidCmdGroup, long param10, long param14)
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519
static const int gPasteCommandID
struct stdole::EXCEPINFO EXCEPINFO
LRESULT OnMenuDropDown(UINT idControl, NMHDR *pNMHDR, BOOL &bHandled)
static VARIANTARG static DISPID
Definition: ordinal.c:49
#define TBN_QUERYINSERT
Definition: commctrl.h:1284
virtual HRESULT STDMETHODCALLTYPE ShowDW(BOOL fShow)
void AddDockItem(IUnknown *newItem, int bandID, int flags)
LRESULT OnTravelBack(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
virtual ~CInternetToolbar()
CComPtr< IBandProxy > fBandProxy
HWND buttons[5]
Definition: sndrec32.cpp:40
virtual HRESULT STDMETHODCALLTYPE IsDirty()
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:561
#define WM_LBUTTONUP
Definition: winuser.h:1753
virtual HRESULT STDMETHODCALLTYPE SetSite(IUnknown *pUnkSite)
CComPtr< IShellMenu > fMenuBar
CComPtr< IShellMenu > fFavoritesMenu
HRESULT ToggleBandVisibility(int BandID)
static const int gFavoritesCommandID
unsigned int UINT
Definition: ndis.h:50
#define WM_MOUSEMOVE
Definition: winuser.h:1751
LRESULT OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
#define NOTIFY_CODE_HANDLER(cd, func)
Definition: atlwin.h:1852
LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
#define BEGIN_MSG_MAP(theClass)
Definition: atlwin.h:1770
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:639
virtual HRESULT STDMETHODCALLTYPE SetBandState(DWORD dwBandID, DWORD dwMask, DWORD dwState)
#define MESSAGE_HANDLER(msg, func)
Definition: atlwin.h:1798
struct stdole::DISPPARAMS DISPPARAMS
HRESULT CreateMenuBar(IShellMenu **menuBar)
const GUID IID_IOleWindow
LRESULT OnMouseMove(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
unsigned int ULONG
Definition: retypes.h:1
virtual HRESULT STDMETHODCALLTYPE GetBandSiteInfo(BANDSITEINFO *pbsinfo)
HRESULT CreateAndInitBandProxy()
virtual HRESULT STDMETHODCALLTYPE Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
virtual HRESULT STDMETHODCALLTYPE GetTypeInfoCount(UINT *pctinfo)
#define FCIDM_SHVIEW_CUT
Definition: shresdef.h:735
#define END_COM_MAP()
Definition: atlcom.h:552
HRESULT CommandStateChanged(bool newValue, int commandID)
WCHAR * LPWSTR
Definition: xmlstorage.h:184
virtual HRESULT STDMETHODCALLTYPE GetBandObject(DWORD dwBandID, REFIID riid, void **ppv)
#define IDR_INTERNETTOOLBAR
Definition: resource.h:98
LONG_PTR LRESULT
Definition: windef.h:209
LRESULT OnSearch(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
GLuint64EXT * result
Definition: glext.h:11304
virtual HRESULT STDMETHODCALLTYPE Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
LPARAM lParam
Definition: combotst.c:139
static const int gCopyToCommandID
virtual HRESULT STDMETHODCALLTYPE HasFocusIO()
LRESULT OnTravelForward(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
#define WM_NOTIFY
Definition: richedit.h:61
virtual HRESULT STDMETHODCALLTYPE SetImageList(const GUID *pguidCmdGroup, HIMAGELIST param10, HIMAGELIST param14, HIMAGELIST param18)
virtual HRESULT STDMETHODCALLTYPE GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static const int gDeleteCommandID
#define TTN_NEEDTEXTW
Definition: commctrl.h:1854
LRESULT OnLUp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
virtual HRESULT STDMETHODCALLTYPE GetSite(REFIID riid, void **ppvSite)