ReactOS 0.4.15-dev-7712-gbbbcd8e
CInternetToolbar Class Reference

#include <internettoolbar.h>

Inheritance diagram for CInternetToolbar:
Collaboration diagram for CInternetToolbar:

Public Member Functions

 CInternetToolbar ()
 
virtual ~CInternetToolbar ()
 
void AddDockItem (IUnknown *newItem, int bandID, int flags)
 
HRESULT ReserveBorderSpace (LONG maxHeight=-1)
 
HRESULT CreateMenuBar (IShellMenu **menuBar)
 
HRESULT CreateToolsBar (IUnknown **toolsBar)
 
HRESULT LockUnlockToolbars (bool locked)
 
HRESULT CommandStateChanged (bool newValue, int commandID)
 
HRESULT CreateAndInitBandProxy ()
 
HRESULT IsBandVisible (int BandID)
 
HRESULT ToggleBandVisibility (int BandID)
 
HRESULT SetState (const GUID *pguidCmdGroup, long commandID, OLECMD *pcmd)
 
void RefreshLockedToolbarState ()
 
virtual HRESULT STDMETHODCALLTYPE UIActivateIO (BOOL fActivate, LPMSG lpMsg)
 
virtual HRESULT STDMETHODCALLTYPE HasFocusIO ()
 
virtual HRESULT STDMETHODCALLTYPE TranslateAcceleratorIO (LPMSG lpMsg)
 
virtual HRESULT STDMETHODCALLTYPE GetWindow (HWND *lphwnd)
 
virtual HRESULT STDMETHODCALLTYPE ContextSensitiveHelp (BOOL fEnterMode)
 
virtual HRESULT STDMETHODCALLTYPE ShowDW (BOOL fShow)
 
virtual HRESULT STDMETHODCALLTYPE CloseDW (DWORD dwReserved)
 
virtual HRESULT STDMETHODCALLTYPE ResizeBorderDW (LPCRECT prcBorder, IUnknown *punkToolbarSite, BOOL fReserved)
 
virtual HRESULT STDMETHODCALLTYPE GetClassID (CLSID *pClassID)
 
virtual HRESULT STDMETHODCALLTYPE IsDirty ()
 
virtual HRESULT STDMETHODCALLTYPE Load (IStream *pStm)
 
virtual HRESULT STDMETHODCALLTYPE Save (IStream *pStm, BOOL fClearDirty)
 
virtual HRESULT STDMETHODCALLTYPE GetSizeMax (ULARGE_INTEGER *pcbSize)
 
virtual HRESULT STDMETHODCALLTYPE InitNew ()
 
virtual HRESULT STDMETHODCALLTYPE QueryStatus (const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText)
 
virtual HRESULT STDMETHODCALLTYPE Exec (const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
 
virtual HRESULT STDMETHODCALLTYPE GetTypeInfoCount (UINT *pctinfo)
 
virtual HRESULT STDMETHODCALLTYPE GetTypeInfo (UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
virtual HRESULT STDMETHODCALLTYPE GetIDsOfNames (REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
virtual HRESULT STDMETHODCALLTYPE Invoke (DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
virtual HRESULT STDMETHODCALLTYPE SetCommandTarget (IUnknown *theTarget, GUID *category, long param14)
 
virtual HRESULT STDMETHODCALLTYPE Unknown1 ()
 
virtual HRESULT STDMETHODCALLTYPE AddButtons (const GUID *pguidCmdGroup, long buttonCount, TBBUTTON *buttons)
 
virtual HRESULT STDMETHODCALLTYPE AddString (const GUID *pguidCmdGroup, HINSTANCE param10, LPCTSTR param14, long *param18)
 
virtual HRESULT STDMETHODCALLTYPE GetButton (const GUID *pguidCmdGroup, long param10, long param14)
 
virtual HRESULT STDMETHODCALLTYPE GetState (const GUID *pguidCmdGroup, long commandID, long *theState)
 
virtual HRESULT STDMETHODCALLTYPE SetState (const GUID *pguidCmdGroup, long commandID, long theState)
 
virtual HRESULT STDMETHODCALLTYPE AddBitmap (const GUID *pguidCmdGroup, long param10, long buttonCount, TBADDBITMAP *lParam, long *newIndex, COLORREF param20)
 
virtual HRESULT STDMETHODCALLTYPE GetBitmapSize (long *paramC)
 
virtual HRESULT STDMETHODCALLTYPE SendToolbarMsg (const GUID *pguidCmdGroup, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *result)
 
virtual HRESULT STDMETHODCALLTYPE SetImageList (const GUID *pguidCmdGroup, HIMAGELIST param10, HIMAGELIST param14, HIMAGELIST param18)
 
virtual HRESULT STDMETHODCALLTYPE ModifyButton (const GUID *pguidCmdGroup, long param10, long param14)
 
virtual HRESULT STDMETHODCALLTYPE OnChange (LONG lEvent, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
 
virtual HRESULT STDMETHODCALLTYPE SetSite (IUnknown *pUnkSite)
 
virtual HRESULT STDMETHODCALLTYPE GetSite (REFIID riid, void **ppvSite)
 
virtual HRESULT STDMETHODCALLTYPE QueryService (REFGUID guidService, REFIID riid, void **ppvObject)
 
virtual HRESULT STDMETHODCALLTYPE OnWinEvent (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult)
 
virtual HRESULT STDMETHODCALLTYPE IsWindowOwner (HWND hWnd)
 
virtual HRESULT STDMETHODCALLTYPE AddBand (IUnknown *punk)
 
virtual HRESULT STDMETHODCALLTYPE EnumBands (UINT uBand, DWORD *pdwBandID)
 
virtual HRESULT STDMETHODCALLTYPE QueryBand (DWORD dwBandID, IDeskBand **ppstb, DWORD *pdwState, LPWSTR pszName, int cchName)
 
virtual HRESULT STDMETHODCALLTYPE SetBandState (DWORD dwBandID, DWORD dwMask, DWORD dwState)
 
virtual HRESULT STDMETHODCALLTYPE RemoveBand (DWORD dwBandID)
 
virtual HRESULT STDMETHODCALLTYPE GetBandObject (DWORD dwBandID, REFIID riid, void **ppv)
 
virtual HRESULT STDMETHODCALLTYPE SetBandSiteInfo (const BANDSITEINFO *pbsinfo)
 
virtual HRESULT STDMETHODCALLTYPE GetBandSiteInfo (BANDSITEINFO *pbsinfo)
 
LRESULT OnTravelBack (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnTravelForward (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnUpLevel (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnSearch (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnFolders (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnForwardToCommandTarget (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnMenuDropDown (UINT idControl, NMHDR *pNMHDR, BOOL &bHandled)
 
LRESULT OnQueryInsert (UINT idControl, NMHDR *pNMHDR, BOOL &bHandled)
 
LRESULT OnQueryDelete (UINT idControl, NMHDR *pNMHDR, BOOL &bHandled)
 
LRESULT OnNavigateCommand (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnContextMenu (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnSize (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnSetCursor (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnTipText (UINT idControl, NMHDR *pNMHDR, BOOL &bHandled)
 
LRESULT OnCommand (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnNotify (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnLDown (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnLUp (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnMouseMove (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnWinIniChange (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnSettingsChange (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
- Public Member Functions inherited from ATL::CComObjectRootEx< CComMultiThreadModelNoCS >
 ~CComObjectRootEx ()
 
ULONG InternalAddRef ()
 
ULONG InternalRelease ()
 
void Lock ()
 
void Unlock ()
 
HRESULT _AtlInitialConstruct ()
 
- Public Member Functions inherited from ATL::CComObjectRootBase
 CComObjectRootBase ()
 
 ~CComObjectRootBase ()
 
void SetVoid (void *)
 
HRESULT _AtlFinalConstruct ()
 
HRESULT FinalConstruct ()
 
void InternalFinalConstructAddRef ()
 
void InternalFinalConstructRelease ()
 
void FinalRelease ()
 
HRESULT ShowDW ([in] BOOL fShow)
 
HRESULT CloseDW ([in] DWORD dwReserved)
 
HRESULT ResizeBorderDW ([in] LPCRECT prcBorder, [in] IUnknown *punkToolbarSite, [in] BOOL fReserved)
 
HRESULT GetWindow ([out] HWND *phwnd)
 
HRESULT ContextSensitiveHelp ([in] BOOL fEnterMode)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 
- Public Member Functions inherited from IPersistStreamInit
HRESULT IsDirty ()
 
HRESULT Load ([in] LPSTREAM pStm)
 
HRESULT Save ([in] LPSTREAM pStm, [in] BOOL fClearDirty)
 
HRESULT GetSizeMax ([out] ULARGE_INTEGER *pcbSize)
 
HRESULT InitNew ()
 
HRESULT GetClassID ([out] CLSID *pClassID)
 
HRESULT QueryStatus ([in, unique] const GUID *pguidCmdGroup, [in] ULONG cCmds, [in, out, size_is(cCmds)] OLECMD prgCmds[], [in, out, unique] OLECMDTEXT *pCmdText)
 
HRESULT Exec ([in, unique] const GUID *pguidCmdGroup, [in] DWORD nCmdID, [in] DWORD nCmdexecopt, [in, unique] VARIANT *pvaIn, [in, out, unique] VARIANT *pvaOut)
 
- Public Member Functions inherited from IDispatch
HRESULT GetTypeInfoCount ([out] UINT *pctinfo)
 
HRESULT GetTypeInfo ([in] UINT iTInfo, [in] LCID lcid, [out] ITypeInfo **ppTInfo)
 
HRESULT GetIDsOfNames ([in] REFIID riid, [in, size_is(cNames)] LPOLESTR *rgszNames, [in] UINT cNames, [in] LCID lcid, [out, size_is(cNames)] DISPID *rgDispId)
 
HRESULT Invoke ([in] DISPID dispIdMember, [in] REFIID riid, [in] LCID lcid, [in] WORD wFlags, [in, out] DISPPARAMS *pDispParams, [out] VARIANT *pVarResult, [out] EXCEPINFO *pExcepInfo, [out] UINT *puArgErr)
 
HRESULT RemoteInvoke ([in] DISPID dispIdMember, [in] REFIID riid, [in] LCID lcid, [in] DWORD dwFlags, [in] DISPPARAMS *pDispParams, [out] VARIANT *pVarResult, [out] EXCEPINFO *pExcepInfo, [out] UINT *pArgErr, [in] UINT cVarRef, [in, size_is(cVarRef)] UINT *rgVarRefIdx, [in, out, size_is(cVarRef)] VARIANTARG *rgVarRef)
 
- Public Member Functions inherited from IShellChangeNotify
HRESULT OnChange ([in] LONG lEvent, [in] PCIDLIST_ABSOLUTE pidl1, [in] PCIDLIST_ABSOLUTE pidl2)
 
- Public Member Functions inherited from IObjectWithSite
HRESULT SetSite ([in] IUnknown *pUnkSite)
 
HRESULT GetSite ([in] REFIID riid, [out, iid_is(riid)] PVOID *ppvSite)
 
- Public Member Functions inherited from IServiceProvider
HRESULT QueryService ([in] REFGUID guidService, [in] REFIID riid, [out] void **ppvObject)
 
HRESULT RemoteQueryService ([in] REFGUID guidService, [in] REFIID riid, [out, iid_is(riid)] IUnknown **ppvObject)
 
HRESULT AddBand ([in] IUnknown *punk)
 
HRESULT EnumBands ([in] UINT uBand, [out] DWORD *pdwBandID)
 
HRESULT QueryBand ([in] DWORD dwBandID, [out] IDeskBand **ppstb, [out] DWORD *pdwState, [out, string, size_is(cchName)] LPWSTR pszName, [in] int cchName)
 
HRESULT SetBandState ([in] DWORD dwBandID, [in] DWORD dwMask, [in] DWORD dwState)
 
HRESULT RemoveBand ([in] DWORD dwBandID)
 
HRESULT GetBandObject ([in] DWORD dwBandID, [in] REFIID riid, [out, iid_is(riid)] void **ppv)
 
HRESULT SetBandSiteInfo ([in] const BANDSITEINFO *pbsinfo)
 
HRESULT GetBandSiteInfo ([in, out] BANDSITEINFO *pbsinfo)
 

Public Attributes

CComPtr< IUnknownfSite
 
HWND fMainReBar
 
bool fLocked
 
CComPtr< IShellMenufMenuBar
 
HWND fMenuBandWindow
 
HWND fNavigationWindow
 
CComPtr< IUnknownfLogoBar
 
CComPtr< IUnknownfControlsBar
 
CComPtr< IUnknownfNavigationBar
 
CComPtr< CMenuCallbackfMenuCallback
 
CComPtr< IOleCommandTargetfCommandTarget
 
GUID fCommandCategory
 
HWND fToolbarWindow
 
DWORD fAdviseCookie
 
CComPtr< IBandProxy > fBandProxy
 
BOOL fSizing
 
POINT fStartPosition
 
LONG fStartHeight
 
ShellSettingspSettings
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 
- Public Attributes inherited from IDispatch
const DISPID DISPID_UNKNOWN = -1
 
const DISPID DISPID_VALUE = 0
 
const DISPID DISPID_PROPERTYPUT = -3
 
const DISPID DISPID_NEWENUM = -4
 
const DISPID DISPID_EVALUATE = -5
 
const DISPID DISPID_CONSTRUCTOR = -6
 
const DISPID DISPID_DESTRUCTOR = -7
 
const DISPID DISPID_COLLECT = -8
 

Additional Inherited Members

- Public Types inherited from IOleWindow
typedef IOleWindowLPOLEWINDOW
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Public Types inherited from IPersistStreamInit
typedef IPersistStreamInitLPPERSISTSTREAMINIT
 
- Public Types inherited from IPersist
typedef IPersistLPPERSIST
 
- Public Types inherited from IOleCommandTarget
enum  OLECMDF {
  OLECMDF_SUPPORTED = 0x1 , OLECMDF_ENABLED = 0x2 , OLECMDF_LATCHED = 0x4 , OLECMDF_NINCHED = 0x8 ,
  OLECMDF_INVISIBLE = 0x10 , OLECMDF_DEFHIDEONCTXTMENU = 0x20
}
 
enum  OLECMDTEXTF { OLECMDTEXTF_NONE = 0 , OLECMDTEXTF_NAME = 1 , OLECMDTEXTF_STATUS = 2 }
 
enum  OLECMDEXECOPT { OLECMDEXECOPT_DODEFAULT = 0 , OLECMDEXECOPT_PROMPTUSER = 1 , OLECMDEXECOPT_DONTPROMPTUSER = 2 , OLECMDEXECOPT_SHOWHELP = 3 }
 
enum  OLECMDID {
  OLECMDID_OPEN = 1 , OLECMDID_NEW = 2 , OLECMDID_SAVE = 3 , OLECMDID_SAVEAS = 4 ,
  OLECMDID_SAVECOPYAS = 5 , OLECMDID_PRINT = 6 , OLECMDID_PRINTPREVIEW = 7 , OLECMDID_PAGESETUP = 8 ,
  OLECMDID_SPELL = 9 , OLECMDID_PROPERTIES = 10 , OLECMDID_CUT = 11 , OLECMDID_COPY = 12 ,
  OLECMDID_PASTE = 13 , OLECMDID_PASTESPECIAL = 14 , OLECMDID_UNDO = 15 , OLECMDID_REDO = 16 ,
  OLECMDID_SELECTALL = 17 , OLECMDID_CLEARSELECTION = 18 , OLECMDID_ZOOM = 19 , OLECMDID_GETZOOMRANGE = 20 ,
  OLECMDID_UPDATECOMMANDS = 21 , OLECMDID_REFRESH = 22 , OLECMDID_STOP = 23 , OLECMDID_HIDETOOLBARS = 24 ,
  OLECMDID_SETPROGRESSMAX = 25 , OLECMDID_SETPROGRESSPOS = 26 , OLECMDID_SETPROGRESSTEXT = 27 , OLECMDID_SETTITLE = 28 ,
  OLECMDID_SETDOWNLOADSTATE = 29 , OLECMDID_STOPDOWNLOAD = 30 , OLECMDID_ONTOOLBARACTIVATED = 31 , OLECMDID_FIND = 32 ,
  OLECMDID_DELETE = 33 , OLECMDID_HTTPEQUIV = 34 , OLECMDID_HTTPEQUIV_DONE = 35 , OLECMDID_ENABLE_INTERACTION = 36 ,
  OLECMDID_ONUNLOAD = 37 , OLECMDID_PROPERTYBAG2 = 38 , OLECMDID_PREREFRESH = 39 , OLECMDID_SHOWSCRIPTERROR = 40 ,
  OLECMDID_SHOWMESSAGE = 41 , OLECMDID_SHOWFIND = 42 , OLECMDID_SHOWPAGESETUP = 43 , OLECMDID_SHOWPRINT = 44 ,
  OLECMDID_CLOSE = 45 , OLECMDID_ALLOWUILESSSAVEAS = 46 , OLECMDID_DONTDOWNLOADCSS = 47 , OLECMDID_UPDATEPAGESTATUS = 48 ,
  OLECMDID_PRINT2 = 49 , OLECMDID_PRINTPREVIEW2 = 50 , OLECMDID_SETPRINTTEMPLATE = 51 , OLECMDID_GETPRINTTEMPLATE = 52 ,
  OLECMDID_PAGEACTIONBLOCKED = 55 , OLECMDID_PAGEACTIONUIQUERY = 56 , OLECMDID_FOCUSVIEWCONTROLS = 57 , OLECMDID_FOCUSVIEWCONTROLSQUERY = 58 ,
  OLECMDID_SHOWPAGEACTIONMENU = 59 , OLECMDID_ADDTRAVELENTRY = 60 , OLECMDID_UPDATETRAVELENTRY = 61 , OLECMDID_UPDATEBACKFORWARDSTATE = 62 ,
  OLECMDID_OPTICAL_ZOOM = 63 , OLECMDID_OPTICAL_GETZOOMRANGE = 64 , OLECMDID_WINDOWSTATECHANGED = 65 , OLECMDID_ACTIVEXINSTALLSCOPE = 66 ,
  OLECMDID_UPDATETRAVELENTRY_DATARECOVERY = 67 , OLECMDID_SHOWTASKDLG = 68 , OLECMDID_POPSTATEEVENT = 69 , OLECMDID_VIEWPORT_MODE = 70 ,
  OLECMDID_LAYOUT_VIEWPORT_WIDTH = 71 , OLECMDID_VISUAL_VIEWPORT_EXCLUDE_BOTTOM = 72 , OLECMDID_USER_OPTICAL_ZOOM = 73 , OLECMDID_PAGEAVAILABLE = 74 ,
  OLECMDID_GETUSERSCALABLE = 75 , OLECMDID_UPDATE_CARET = 76 , OLECMDID_ENABLE_VISIBILITY = 77 , OLECMDID_MEDIA_PLAYBACK = 78
}
 
typedef IOleCommandTargetLPOLECOMMANDTARGET
 
typedef enum IOleCommandTarget::OLECMDF OLECMDF
 
typedef struct IOleCommandTarget::_tagOLECMD OLECMD
 
typedef struct IOleCommandTarget::_tagOLECMDTEXT OLECMDTEXT
 
typedef enum IOleCommandTarget::OLECMDTEXTF OLECMDTEXTF
 
typedef enum IOleCommandTarget::OLECMDEXECOPT OLECMDEXECOPT
 
typedef enum IOleCommandTarget::OLECMDID OLECMDID
 
- Public Types inherited from IDispatch
typedef IDispatchLPDISPATCH
 
- Public Types inherited from IObjectWithSite
typedef IObjectWithSiteLPOBJECTWITHSITE
 
- Public Types inherited from IServiceProvider
typedef IServiceProviderLPSERVICEPROVIDER
 
- Static Public Member Functions inherited from ATL::CComObjectRootBase
static void WINAPI ObjectMain (bool)
 
static const struct _ATL_CATMAP_ENTRYGetCategoryMap ()
 
static HRESULT WINAPI InternalQueryInterface (void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
 

Detailed Description

Definition at line 60 of file internettoolbar.h.

Constructor & Destructor Documentation

◆ CInternetToolbar()

CInternetToolbar::CInternetToolbar ( )

Definition at line 608 of file internettoolbar.cpp.

609{
615 fAdviseCookie = 0;
616 pSettings = NULL;
617}
ShellSettings * pSettings
CComPtr< CMenuCallback > fMenuCallback
#define NULL
Definition: types.h:112

◆ ~CInternetToolbar()

CInternetToolbar::~CInternetToolbar ( )
virtual

Definition at line 619 of file internettoolbar.cpp.

620{
621}

Member Function Documentation

◆ AddBand()

HRESULT STDMETHODCALLTYPE CInternetToolbar::AddBand ( IUnknown punk)
virtual

Implements IBandSite.

Definition at line 1442 of file internettoolbar.cpp.

1443{
1445 return E_NOTIMPL;
1446}
#define UNIMPLEMENTED
Definition: debug.h:115
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ AddBitmap()

HRESULT STDMETHODCALLTYPE CInternetToolbar::AddBitmap ( const GUID pguidCmdGroup,
long  param10,
long  buttonCount,
TBADDBITMAP lParam,
long newIndex,
COLORREF  param20 
)
virtual

Definition at line 1291 of file internettoolbar.cpp.

1293{
1294 return E_NOTIMPL;
1295}

◆ AddButtons()

HRESULT STDMETHODCALLTYPE CInternetToolbar::AddButtons ( const GUID pguidCmdGroup,
long  buttonCount,
TBBUTTON buttons 
)
virtual

Definition at line 1252 of file internettoolbar.cpp.

1253{
1254 return E_NOTIMPL;
1255}

◆ AddDockItem()

void CInternetToolbar::AddDockItem ( IUnknown newItem,
int  bandID,
int  flags 
)

Definition at line 623 of file internettoolbar.cpp.

624{
625 CComPtr<CDockSite> newSite;
626
627 newSite = new CComObject<CDockSite>;
628 newSite->Initialize(newItem, this, fMainReBar, bandID, flags);
629}
GLbitfield flags
Definition: glext.h:7161

Referenced by InitNew().

◆ AddString()

HRESULT STDMETHODCALLTYPE CInternetToolbar::AddString ( const GUID pguidCmdGroup,
HINSTANCE  param10,
LPCTSTR  param14,
long param18 
)
virtual

Definition at line 1257 of file internettoolbar.cpp.

1259{
1260 long result;
1261
1263 reinterpret_cast<WPARAM>(param10), reinterpret_cast<LPARAM>(param14));
1264 *param18 = result;
1265 if (result == -1)
1266 return E_FAIL;
1267 return S_OK;
1268}
#define E_FAIL
Definition: ddrawi.h:102
GLuint64EXT * result
Definition: glext.h:11304
#define S_OK
Definition: intsafe.h:52
#define TB_ADDSTRINGW
Definition: commctrl.h:1132
#define long
Definition: qsort.c:33
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
#define SendMessage
Definition: winuser.h:5842

◆ CloseDW()

HRESULT STDMETHODCALLTYPE CInternetToolbar::CloseDW ( DWORD  dwReserved)
virtual

Implements IDockingWindow.

Definition at line 924 of file internettoolbar.cpp.

925{
926 HRESULT hResult;
927
928 if (fMenuBar)
929 {
931 if (FAILED_UNEXPECTEDLY(hResult))
932 return hResult;
933 ReleaseCComPtrExpectZero(fMenuBar);
934 }
935 if (fControlsBar)
936 {
938 if (FAILED_UNEXPECTEDLY(hResult))
939 return hResult;
940 ReleaseCComPtrExpectZero(fControlsBar);
941 }
942 if (fNavigationBar)
943 {
945 if (FAILED_UNEXPECTEDLY(hResult))
946 return hResult;
947 ReleaseCComPtrExpectZero(fNavigationBar);
948 }
949 if (fLogoBar)
950 {
952 if (FAILED_UNEXPECTEDLY(hResult))
953 return hResult;
954 ReleaseCComPtrExpectZero(fLogoBar);
955 }
956
957 SetSite(NULL);
958 return S_OK;
959}
CComPtr< IUnknown > fNavigationBar
CComPtr< IUnknown > fLogoBar
CComPtr< IUnknown > fControlsBar
virtual HRESULT STDMETHODCALLTYPE SetSite(IUnknown *pUnkSite)
CComPtr< IShellMenu > fMenuBar
#define FAILED_UNEXPECTEDLY(hr)
Definition: precomp.h:121
HRESULT IUnknown_CloseDW(IUnknown *punk, DWORD dwReserved)
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:95

◆ CommandStateChanged()

HRESULT CInternetToolbar::CommandStateChanged ( bool  newValue,
int  commandID 
)

Definition at line 759 of file internettoolbar.cpp.

760{
761 HRESULT hResult;
762
763 hResult = S_OK;
764 switch (commandID)
765 {
766 case -1:
767 // loop through buttons
768 //for buttons in CLSID_CommonButtons
769 // if up, QueryStatus for up state and update it
770 //
771 //for buttons in fCommandCategory, update with QueryStatus of fCommandTarget
772
773 OLECMD commandList[4];
774 commandList[0].cmdID = 0x1c;
775 commandList[1].cmdID = 0x1d;
776 commandList[2].cmdID = 0x1e;
777 commandList[3].cmdID = 0x23;
778 IUnknown_QueryStatus(fSite, CGID_Explorer, 4, commandList, NULL);
779 SetState(&CLSID_CommonButtons, gSearchCommandID, &commandList[0]);
780 SetState(&CLSID_CommonButtons, gFoldersCommandID, &commandList[3]);
781 //SetState(&CLSID_CommonButtons, gFavoritesCommandID, &commandList[2]);
782 //SetState(&CLSID_CommonButtons, gHistoryCommandID, &commandList[1]);
783
784 break;
785 case 1:
786 // forward
787 hResult = SetState(&CLSID_CommonButtons, IDM_GOTO_FORWARD, newValue ? TBSTATE_ENABLED : 0);
788 break;
789 case 2:
790 // back
791 hResult = SetState(&CLSID_CommonButtons, IDM_GOTO_BACK, newValue ? TBSTATE_ENABLED : 0);
792 break;
793 case 3:
794 // up
795 hResult = SetState(&CLSID_CommonButtons, IDM_GOTO_UPONELEVEL, newValue ? TBSTATE_ENABLED : 0);
796 break;
797 }
798 return hResult;
799}
HRESULT SetState(const GUID *pguidCmdGroup, long commandID, OLECMD *pcmd)
CComPtr< IUnknown > fSite
#define IDM_GOTO_UPONELEVEL
Definition: resource.h:47
#define IDM_GOTO_FORWARD
Definition: resource.h:46
#define IDM_GOTO_BACK
Definition: resource.h:45
HRESULT WINAPI IUnknown_QueryStatus(IUnknown *lpUnknown, REFGUID pguidCmdGroup, ULONG cCmds, OLECMD *prgCmds, OLECMDTEXT *pCmdText)
Definition: ordinal.c:1044
struct IOleCommandTarget::_tagOLECMD OLECMD
static const int gFoldersCommandID
static const int gSearchCommandID
#define TBSTATE_ENABLED
Definition: commctrl.h:974

Referenced by Invoke().

◆ ContextSensitiveHelp()

HRESULT STDMETHODCALLTYPE CInternetToolbar::ContextSensitiveHelp ( BOOL  fEnterMode)
virtual

Implements IOleWindow.

Definition at line 879 of file internettoolbar.cpp.

880{
881 return E_NOTIMPL;
882}

◆ CreateAndInitBandProxy()

HRESULT CInternetToolbar::CreateAndInitBandProxy ( )

Definition at line 801 of file internettoolbar.cpp.

802{
803 CComPtr<IServiceProvider> serviceProvider;
804 HRESULT hResult;
805
806 hResult = fSite->QueryInterface(IID_PPV_ARG(IServiceProvider, &serviceProvider));
807 if (FAILED_UNEXPECTEDLY(hResult))
808 return hResult;
809 hResult = serviceProvider->QueryService(SID_IBandProxy, IID_PPV_ARG(IBandProxy, &fBandProxy));
810 if (FAILED_UNEXPECTEDLY(hResult))
811 {
812 hResult = CBandProxy_CreateInstance(IID_PPV_ARG(IBandProxy, &fBandProxy));
813 if (FAILED_UNEXPECTEDLY(hResult))
814 return hResult;
815 hResult = fBandProxy->SetSite(fSite);
816 if (FAILED_UNEXPECTEDLY(hResult))
817 return hResult;
818 }
819 return S_OK;
820}
HRESULT CBandProxy_CreateInstance(REFIID riid, void **ppv)
Definition: browseui.cpp:42
CComPtr< IBandProxy > fBandProxy
#define IID_PPV_ARG(Itype, ppType)

Referenced by QueryService().

◆ CreateMenuBar()

HRESULT CInternetToolbar::CreateMenuBar ( IShellMenu **  menuBar)

Definition at line 651 of file internettoolbar.cpp.

652{
653 CComPtr<IShellMenu> menubar;
655 VARIANT menuOut;
656 HWND ownerWindow;
657 HRESULT hResult;
658
659 if (!pMenuBar)
660 return E_POINTER;
661
662 *pMenuBar = NULL;
663
664 hResult = CMenuBand_CreateInstance(IID_PPV_ARG(IShellMenu, &menubar));
665 if (FAILED_UNEXPECTEDLY(hResult))
666 return hResult;
667
668 hResult = fMenuCallback->QueryInterface(IID_PPV_ARG(IShellMenuCallback, &callback));
669 if (FAILED_UNEXPECTEDLY(hResult))
670 return hResult;
671
672 hResult = menubar->Initialize(callback, -1, ANCESTORDEFAULT, SMINIT_HORIZONTAL | SMINIT_TOPLEVEL);
673 if (FAILED_UNEXPECTEDLY(hResult))
674 return hResult;
675
676 // Set Menu
677 {
678 hResult = IUnknown_Exec(fSite, CGID_Explorer, 0x35, 0, NULL, &menuOut);
679 if (FAILED_UNEXPECTEDLY(hResult))
680 return hResult;
681
682 if (V_VT(&menuOut) != VT_INT_PTR || V_INTREF(&menuOut) == NULL)
683 return E_FAIL;
684
685 hResult = IUnknown_GetWindow(fSite, &ownerWindow);
686 if (FAILED_UNEXPECTEDLY(hResult))
687 return hResult;
688
689 HMENU hMenuBar = (HMENU) V_INTREF(&menuOut);
690
691 // FIXME: Figure out the proper way to do this.
692 HMENU hMenuFavs = GetSubMenu(hMenuBar, 3);
693 if (hMenuFavs)
694 {
696 }
697
698 hResult = menubar->SetMenu(hMenuBar, ownerWindow, SMSET_DONTOWN);
699 if (FAILED_UNEXPECTEDLY(hResult))
700 return hResult;
701 }
702
703 hResult = IUnknown_Exec(menubar, CGID_MenuBand, 3, 1, NULL, NULL);
704 if (FAILED_UNEXPECTEDLY(hResult))
705 return hResult;
706
707 *pMenuBar = menubar.Detach();
708
709 return S_OK;
710}
T * Detach()
Definition: atlcomcli.h:186
#define IDM_FAVORITES_EMPTY
Definition: resource.h:52
@ VT_INT_PTR
Definition: compat.h:2327
HRESULT WINAPI IUnknown_Exec(IUnknown *lpUnknown, REFGUID pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
Definition: ordinal.c:1083
HRESULT WINAPI IUnknown_GetWindow(IUnknown *lpUnknown, HWND *lphWnd)
Definition: ordinal.c:1332
static IPrintDialogCallback callback
Definition: printdlg.c:326
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
#define V_VT(A)
Definition: oleauto.h:211
#define V_INTREF(A)
Definition: oleauto.h:252
#define CMenuBand_CreateInstance
Definition: shellmenu.h:81
#define CGID_MenuBand
#define E_POINTER
Definition: winerror.h:2365
#define MF_BYCOMMAND
Definition: winuser.h:202
BOOL WINAPI DeleteMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)

Referenced by InitNew().

◆ CreateToolsBar()

HRESULT CInternetToolbar::CreateToolsBar ( IUnknown **  toolsBar)

◆ EnumBands()

HRESULT STDMETHODCALLTYPE CInternetToolbar::EnumBands ( UINT  uBand,
DWORD pdwBandID 
)
virtual

Implements IBandSite.

Definition at line 1448 of file internettoolbar.cpp.

1449{
1451 return E_NOTIMPL;
1452}

◆ Exec()

HRESULT STDMETHODCALLTYPE CInternetToolbar::Exec ( const GUID pguidCmdGroup,
DWORD  nCmdID,
DWORD  nCmdexecopt,
VARIANT pvaIn,
VARIANT pvaOut 
)
virtual

Implements IOleCommandTarget.

Definition at line 1154 of file internettoolbar.cpp.

1156{
1157 if (IsEqualIID(*pguidCmdGroup, CGID_PrivCITCommands))
1158 {
1159 switch (nCmdID)
1160 {
1161 case 1:
1162 // what do I do here?
1163 return S_OK;
1164 case ITID_TEXTLABELS:
1165 // toggle text labels
1166 return S_OK;
1172 // toggle links band visibility
1173 return S_OK;
1175 // run customize
1176 return S_OK;
1177 case ITID_TOOLBARLOCKED:
1179 }
1180 }
1181 return E_FAIL;
1182}
HRESULT LockUnlockToolbars(bool locked)
HRESULT ToggleBandVisibility(int BandID)
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95
BOOL fLocked
Definition: settings.h:15
#define ITID_LINKSBANDSHOWN
Definition: undocshell.h:754
#define ITID_TOOLBARBANDSHOWN
Definition: undocshell.h:752
#define ITBBID_ADDRESSBAND
Definition: undocshell.h:746
#define ITBBID_TOOLSBAND
Definition: undocshell.h:745
#define ITID_TEXTLABELS
Definition: undocshell.h:751
#define ITID_CUSTOMIZEENABLED
Definition: undocshell.h:757
#define ITID_ADDRESSBANDSHOWN
Definition: undocshell.h:753
#define ITID_TOOLBARLOCKED
Definition: undocshell.h:758

Referenced by OnMenuDropDown().

◆ GetBandObject()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetBandObject ( DWORD  dwBandID,
REFIID  riid,
void **  ppv 
)
virtual

Implements IBandSite.

Definition at line 1479 of file internettoolbar.cpp.

1480{
1482 return E_NOTIMPL;
1483}

◆ GetBandSiteInfo()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetBandSiteInfo ( BANDSITEINFO pbsinfo)
virtual

Implements IBandSite.

Definition at line 1491 of file internettoolbar.cpp.

1492{
1494 return E_NOTIMPL;
1495}

◆ GetBitmapSize()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetBitmapSize ( long paramC)
virtual

Definition at line 1297 of file internettoolbar.cpp.

1298{
1299 if (paramC == NULL)
1300 return E_POINTER;
1301 *paramC = MAKELONG(24, 24);
1302 return S_OK;
1303}
#define MAKELONG(a, b)
Definition: typedefs.h:249

◆ GetButton()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetButton ( const GUID pguidCmdGroup,
long  param10,
long  param14 
)
virtual

Definition at line 1270 of file internettoolbar.cpp.

1271{
1272 return E_NOTIMPL;
1273}

◆ GetClassID()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetClassID ( CLSID pClassID)
virtual

Implements IPersist.

Definition at line 996 of file internettoolbar.cpp.

997{
998 if (pClassID == NULL)
999 return E_POINTER;
1000 *pClassID = CLSID_InternetToolbar;
1001 return S_OK;
1002}

◆ GetIDsOfNames()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetIDsOfNames ( REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
virtual

Implements IDispatch.

Definition at line 1194 of file internettoolbar.cpp.

1196{
1197 return E_NOTIMPL;
1198}

◆ GetSite()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetSite ( REFIID  riid,
void **  ppvSite 
)
virtual

Definition at line 1378 of file internettoolbar.cpp.

1379{
1380 if (ppvSite == NULL)
1381 return E_POINTER;
1382 if (fSite.p != NULL)
1383 return fSite->QueryInterface(riid, ppvSite);
1384 *ppvSite = NULL;
1385 return S_OK;
1386}
REFIID riid
Definition: atlbase.h:39

◆ GetSizeMax()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetSizeMax ( ULARGE_INTEGER pcbSize)
virtual

Implements IPersistStreamInit.

Definition at line 1019 of file internettoolbar.cpp.

1020{
1021 return E_NOTIMPL;
1022}

◆ GetState()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetState ( const GUID pguidCmdGroup,
long  commandID,
long theState 
)
virtual

Definition at line 1275 of file internettoolbar.cpp.

1276{
1277 if (theState == NULL)
1278 return E_POINTER;
1279 // map the command id
1280 *theState = (long)::SendMessage(fToolbarWindow, TB_GETSTATE, commandID, 0);
1281 return S_OK;
1282}
#define TB_GETSTATE
Definition: commctrl.h:1055

◆ GetTypeInfo()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetTypeInfo ( UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
virtual

Implements IDispatch.

Definition at line 1189 of file internettoolbar.cpp.

1190{
1191 return E_NOTIMPL;
1192}

◆ GetTypeInfoCount()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetTypeInfoCount ( UINT pctinfo)
virtual

Implements IDispatch.

Definition at line 1184 of file internettoolbar.cpp.

1185{
1186 return E_NOTIMPL;
1187}

◆ GetWindow()

HRESULT STDMETHODCALLTYPE CInternetToolbar::GetWindow ( HWND lphwnd)
virtual

Implements IOleWindow.

Definition at line 871 of file internettoolbar.cpp.

872{
873 if (lphwnd == NULL)
874 return E_POINTER;
875 *lphwnd = m_hWnd;
876 return S_OK;
877}

◆ HasFocusIO()

HRESULT STDMETHODCALLTYPE CInternetToolbar::HasFocusIO ( )
virtual

Definition at line 827 of file internettoolbar.cpp.

828{
830
831 if (fMenuBar)
833 if (hr != S_FALSE)
834 return hr;
835
836 if (fControlsBar)
838 if (hr != S_FALSE)
839 return hr;
840
841 if (fNavigationBar)
843 if (hr != S_FALSE)
844 return hr;
845
846 return S_FALSE;
847}
HRESULT WINAPI IUnknown_HasFocusIO(IUnknown *lpUnknown)
Definition: ordinal.c:4216
HRESULT hr
Definition: shlfolder.c:183
#define S_FALSE
Definition: winerror.h:2357

◆ InitNew()

HRESULT STDMETHODCALLTYPE CInternetToolbar::InitNew ( void  )
virtual

Implements IPersistStreamInit.

Definition at line 1024 of file internettoolbar.cpp.

1025{
1026 CComPtr<IShellMenu> menuBar;
1027 CComPtr<IUnknown> logoBar;
1028 CComPtr<IUnknown> toolsBar;
1029 CComPtr<IUnknown> navigationBar;
1030 HRESULT hResult;
1031
1032 /* Create and attach the menubar to the rebar */
1033 hResult = CreateMenuBar(&menuBar);
1034 if (FAILED_UNEXPECTEDLY(hResult))
1035 return hResult;
1037
1038 hResult = IUnknown_GetWindow(menuBar, &fMenuBandWindow);
1039 fMenuBar.Attach(menuBar.Detach()); // transfer the ref count
1040
1041 // FIXME: The ROS Rebar does not properly support fixed-size items such as the brandband,
1042 // and it will put them in their own row, sized to take up the whole row.
1043#if 0
1044 /* Create and attach the brand/logo to the rebar */
1045 hResult = CBrandBand_CreateInstance(IID_PPV_ARG(IUnknown, &logoBar));
1046 if (FAILED_UNEXPECTEDLY(hResult))
1047 return hResult;
1049 fLogoBar.Attach(logoBar.Detach()); // transfer the ref count
1050#endif
1051
1052 /* Create and attach the standard toolbar to the rebar */
1053 hResult = CToolsBand_CreateInstance(IID_PPV_ARG(IUnknown, &toolsBar));
1054 if (FAILED_UNEXPECTEDLY(hResult))
1055 return hResult;
1057 fControlsBar.Attach(toolsBar.Detach()); // transfer the ref count
1059 if (FAILED_UNEXPECTEDLY(hResult))
1060 return hResult;
1061
1062 /* Create and attach the address/navigation toolbar to the rebar */
1063 hResult = CAddressBand_CreateInstance(IID_PPV_ARG(IUnknown, &navigationBar));
1064 if (FAILED_UNEXPECTEDLY(hResult))
1065 return hResult;
1067 fNavigationBar.Attach(navigationBar.Detach());
1069
1070 return S_OK;
1071}
HRESULT CAddressBand_CreateInstance(REFIID riid, void **ppv)
Definition: browseui.cpp:24
HRESULT CBrandBand_CreateInstance(REFIID riid, void **ppv)
Definition: browseui.cpp:51
HRESULT CToolsBand_CreateInstance(REFIID riid, void **ppv)
Definition: toolsband.cpp:419
void Attach(T *lp)
Definition: atlcomcli.h:179
HRESULT CreateMenuBar(IShellMenu **menuBar)
void AddDockItem(IUnknown *newItem, int bandID, int flags)
#define ITBBID_BRANDBAND
Definition: undocshell.h:744
#define ITBBID_MENUBAND
Definition: undocshell.h:743

◆ Invoke()

HRESULT STDMETHODCALLTYPE CInternetToolbar::Invoke ( DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
virtual

Implements IDispatch.

Definition at line 1200 of file internettoolbar.cpp.

1202{
1203 HRESULT hResult;
1204
1205 switch(dispIdMember)
1206 {
1208 hResult = S_OK;
1209 break;
1211 hResult = S_OK;
1212 break;
1214 if (pDispParams->cArgs != 2)
1215 return E_INVALIDARG;
1216 if (V_VT(&pDispParams->rgvarg[0]) != VT_BOOL || V_VT(&pDispParams->rgvarg[1]) != VT_I4)
1217 return E_INVALIDARG;
1218 return CommandStateChanged(V_BOOL(&pDispParams->rgvarg[0]) != VARIANT_FALSE,
1219 V_I4(&pDispParams->rgvarg[1]));
1221 hResult = S_OK;
1222 break;
1224 hResult = S_OK;
1225 break;
1227 hResult = S_OK;
1228 break;
1229 }
1230 return S_OK;
1231}
HRESULT CommandStateChanged(bool newValue, int commandID)
#define E_INVALIDARG
Definition: ddrawi.h:101
@ VT_I4
Definition: compat.h:2298
@ VT_BOOL
Definition: compat.h:2306
#define V_BOOL(A)
Definition: oleauto.h:224
#define V_I4(A)
Definition: oleauto.h:247
#define DISPID_NAVIGATECOMPLETE2
Definition: webchild.h:54
#define DISPID_BEFORENAVIGATE
Definition: webchild.h:35
#define DISPID_COMMANDSTATECHANGE
Definition: webchild.h:40
#define DISPID_DOWNLOADCOMPLETE
Definition: webchild.h:39
#define DISPID_DOWNLOADBEGIN
Definition: webchild.h:41
#define DISPID_DOCUMENTCOMPLETE
Definition: webchild.h:61

◆ IsBandVisible()

HRESULT CInternetToolbar::IsBandVisible ( int  BandID)

Definition at line 1073 of file internettoolbar.cpp.

1074{
1075 int index = (int)SendMessage(fMainReBar, RB_IDTOINDEX, BandID, 0);
1076
1079
1080 return (bandInfo.fStyle & RBBS_HIDDEN) ? S_FALSE : S_OK;
1081}
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
GLuint index
Definition: glext.h:6031
static const struct bandInfoStruct bandInfo[9]
Definition: layer3.c:95
struct tagREBARBANDINFOW REBARBANDINFOW
#define RB_GETBANDINFOW
Definition: commctrl.h:1609
#define RB_IDTOINDEX
Definition: commctrl.h:1588
#define RBBS_HIDDEN
Definition: commctrl.h:1492
#define RBBIM_STYLE
Definition: commctrl.h:1502

Referenced by OnContextMenu(), and QueryStatus().

◆ IsDirty()

HRESULT STDMETHODCALLTYPE CInternetToolbar::IsDirty ( void  )
virtual

Implements IPersistStreamInit.

Definition at line 1004 of file internettoolbar.cpp.

1005{
1006 return E_NOTIMPL;
1007}

◆ IsWindowOwner()

HRESULT STDMETHODCALLTYPE CInternetToolbar::IsWindowOwner ( HWND  hWnd)
virtual

Definition at line 1436 of file internettoolbar.cpp.

1437{
1439 return E_NOTIMPL;
1440}

◆ Load()

HRESULT STDMETHODCALLTYPE CInternetToolbar::Load ( IStream pStm)
virtual

Definition at line 1009 of file internettoolbar.cpp.

1010{
1011 return E_NOTIMPL;
1012}

◆ LockUnlockToolbars()

HRESULT CInternetToolbar::LockUnlockToolbars ( bool  locked)

Definition at line 712 of file internettoolbar.cpp.

713{
714 if (locked != !!pSettings->fLocked)
715 {
716 pSettings->fLocked = (BOOL)locked;
717 pSettings->Save();
719 }
720 return S_OK;
721}
void RefreshLockedToolbarState()
#define BOOL
Definition: nt_native.h:43
void Save()
Definition: settings.cpp:12

Referenced by Exec(), and OnContextMenu().

◆ ModifyButton()

HRESULT STDMETHODCALLTYPE CInternetToolbar::ModifyButton ( const GUID pguidCmdGroup,
long  param10,
long  param14 
)
virtual

Definition at line 1317 of file internettoolbar.cpp.

1318{
1319 return E_NOTIMPL;
1320}

◆ OnChange()

HRESULT STDMETHODCALLTYPE CInternetToolbar::OnChange ( LONG  lEvent,
LPCITEMIDLIST  pidl1,
LPCITEMIDLIST  pidl2 
)
virtual

Definition at line 1322 of file internettoolbar.cpp.

1323{
1324 return E_NOTIMPL;
1325}

◆ OnCommand()

LRESULT CInternetToolbar::OnCommand ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 1818 of file internettoolbar.cpp.

1819{
1820 LRESULT theResult;
1821 HRESULT hResult;
1822
1823 hResult = OnWinEvent((HWND) lParam, uMsg, wParam, lParam, &theResult);
1824
1825 bHandled = hResult == S_OK;
1826
1827 return FAILED_UNEXPECTEDLY(hResult) ? 0 : theResult;
1828}
virtual HRESULT STDMETHODCALLTYPE OnWinEvent(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult)
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
LONG_PTR LRESULT
Definition: windef.h:209

◆ OnContextMenu()

LRESULT CInternetToolbar::OnContextMenu ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 1670 of file internettoolbar.cpp.

1671{
1672 HMENU contextMenuBar;
1673 HMENU contextMenu;
1674 POINT clickLocation;
1675 int command;
1676 RBHITTESTINFO hitTestInfo;
1677 REBARBANDINFOW rebarBandInfo;
1678 int bandID;
1679
1680 clickLocation.x = LOWORD(lParam);
1681 clickLocation.y = HIWORD(lParam);
1682 hitTestInfo.pt = clickLocation;
1683 ScreenToClient(&hitTestInfo.pt);
1684 SendMessage(fMainReBar, RB_HITTEST, 0, (LPARAM)&hitTestInfo);
1685 if (hitTestInfo.iBand == -1)
1686 return 0;
1687
1688 pSettings->Load();
1689 rebarBandInfo.cbSize = sizeof(rebarBandInfo);
1690 rebarBandInfo.fMask = RBBIM_ID;
1691 SendMessage(fMainReBar, RB_GETBANDINFOW, hitTestInfo.iBand, (LPARAM)&rebarBandInfo);
1692 bandID = rebarBandInfo.wID;
1693 contextMenuBar = LoadMenu(_AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCE(IDM_CABINET_CONTEXTMENU));
1694 contextMenu = GetSubMenu(contextMenuBar, 0);
1695 switch (bandID)
1696 {
1697 case ITBBID_MENUBAND: // menu band
1701 break;
1702 case ITBBID_BRANDBAND: // brand band
1706 break;
1707 case ITBBID_TOOLSBAND: // tools band
1710 break;
1711 case ITBBID_ADDRESSBAND: // navigation band
1714 break;
1715 default:
1716 break;
1717 }
1718
1720
1727
1728 // TODO: use GetSystemMetrics(SM_MENUDROPALIGNMENT) to determine menu alignment
1730 clickLocation.x, clickLocation.y, 0, m_hWnd, NULL);
1731 switch (command)
1732 {
1733 case IDM_TOOLBARS_STANDARDBUTTONS: // standard buttons
1735 break;
1736 case IDM_TOOLBARS_ADDRESSBAR: // address bar
1738 break;
1739 case IDM_TOOLBARS_LINKSBAR: // links
1740 break;
1741 case IDM_TOOLBARS_LOCKTOOLBARS: // lock the toolbars
1743 break;
1744 case IDM_TOOLBARS_CUSTOMIZE: // customize
1746 break;
1749 break;
1750 }
1751
1752 DestroyMenu(contextMenuBar);
1753 return 1;
1754}
HRESULT IsBandVisible(int BandID)
#define FALSE
Definition: types.h:117
#define IDM_TOOLBARS_LOCKTOOLBARS
Definition: resource.h:33
#define IDM_TOOLBARS_TEXTLABELS
Definition: resource.h:35
#define IDM_TOOLBARS_STANDARDBUTTONS
Definition: resource.h:30
#define IDM_CABINET_CONTEXTMENU
Definition: resource.h:87
#define IDM_TOOLBARS_GOBUTTON
Definition: resource.h:36
#define IDM_TOOLBARS_CUSTOMIZE
Definition: resource.h:34
#define IDM_TOOLBARS_ADDRESSBAR
Definition: resource.h:31
#define IDM_TOOLBARS_LINKSBAR
Definition: resource.h:32
DWORD WINAPI SHCheckMenuItem(HMENU hMenu, UINT uID, BOOL bCheck)
Definition: ordinal.c:1796
UINT WINAPI SHEnableMenuItem(HMENU hMenu, UINT wItemID, BOOL bEnable)
Definition: ordinal.c:1777
#define LOWORD(l)
Definition: pedump.c:82
#define TB_CUSTOMIZE
Definition: commctrl.h:1130
#define RBBIM_ID
Definition: commctrl.h:1510
#define RB_HITTEST
Definition: commctrl.h:1581
void Load()
Definition: settings.cpp:24
BOOL fShowGoButton
Definition: settings.h:16
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
#define HIWORD(l)
Definition: typedefs.h:247
#define TPM_RIGHTBUTTON
Definition: winuser.h:2379
#define WM_COMMAND
Definition: winuser.h:1739
#define TPM_TOPALIGN
Definition: winuser.h:2382
#define TPM_LEFTALIGN
Definition: winuser.h:2376
#define LoadMenu
Definition: winuser.h:5816
BOOL WINAPI DestroyMenu(_In_ HMENU)
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
#define TPM_RETURNCMD
Definition: winuser.h:2386
#define MAKEINTRESOURCE
Definition: winuser.h:591
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)

◆ OnFolders()

LRESULT CInternetToolbar::OnFolders ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)

Definition at line 1533 of file internettoolbar.cpp.

1534{
1535 IUnknown_Exec(fSite, CGID_Explorer, 0x23, 0, NULL, NULL);
1536 return 1;
1537}

◆ OnForwardToCommandTarget()

LRESULT CInternetToolbar::OnForwardToCommandTarget ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)

Definition at line 1539 of file internettoolbar.cpp.

1540{
1541 HRESULT hResult;
1542
1543 if (fCommandTarget.p != NULL)
1544 {
1545 hResult = fCommandTarget->Exec(&fCommandCategory, wID, 0, NULL, NULL);
1546 if (FAILED(hResult))
1547 {
1548 ::SendMessageW(::GetParent(m_hWnd), WM_COMMAND, wID, 0);
1549 }
1550 }
1551 return 1;
1552}
CComPtr< IOleCommandTarget > fCommandTarget
#define FAILED(hr)
Definition: intsafe.h:51
HWND WINAPI GetParent(_In_ HWND)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ OnLDown()

LRESULT CInternetToolbar::OnLDown ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 1844 of file internettoolbar.cpp.

1845{
1846 bHandled = FALSE;
1847 if (pSettings->fLocked)
1848 return 0;
1849
1850 if (wParam & MK_CONTROL)
1851 return 0;
1852
1853 fSizing = TRUE;
1854
1855 DWORD msgp = GetMessagePos();
1856
1859
1860 RECT rc;
1861 GetWindowRect(&rc);
1862
1863 fStartHeight = rc.bottom - rc.top;
1864
1865 SetCapture();
1866
1867 bHandled = TRUE;
1868 return 0;
1869}
#define TRUE
Definition: types.h:120
unsigned long DWORD
Definition: ntddk_ex.h:95
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
#define GET_Y_LPARAM(lp)
Definition: windowsx.h:300
#define GET_X_LPARAM(lp)
Definition: windowsx.h:299
HWND WINAPI SetCapture(_In_ HWND hWnd)
DWORD WINAPI GetMessagePos(void)
Definition: message.c:1351
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
#define MK_CONTROL
Definition: winuser.h:2369

◆ OnLUp()

LRESULT CInternetToolbar::OnLUp ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 1889 of file internettoolbar.cpp.

1890{
1891 bHandled = FALSE;
1892 if (!fSizing)
1893 return 0;
1894
1895 OnMouseMove(uMsg, wParam, lParam, bHandled);
1896
1897 fSizing = FALSE;
1898
1900
1901 return 0;
1902}
LRESULT OnMouseMove(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL WINAPI ReleaseCapture(void)
Definition: message.c:2890

◆ OnMenuDropDown()

LRESULT CInternetToolbar::OnMenuDropDown ( UINT  idControl,
NMHDR pNMHDR,
BOOL bHandled 
)

Definition at line 1554 of file internettoolbar.cpp.

1555{
1556 CComPtr<IBrowserService> browserService;
1557 CComPtr<IOleCommandTarget> commandTarget;
1558 CComPtr<ITravelLog> travelLog;
1559 NMTOOLBARW *notifyInfo;
1560 RECT bounds;
1561 HMENU newMenu;
1563 int selectedItem;
1564 VARIANT parmIn;
1565 OLECMD commandInfo;
1566 HRESULT hResult;
1567 wchar_t templateString[200];
1568
1569 notifyInfo = (NMTOOLBARW *)pNMHDR;
1570 if (notifyInfo->hdr.hwndFrom != fToolbarWindow)
1571 {
1572 // not from the toolbar, keep looking for a message handler
1573 bHandled = FALSE;
1574 return 0;
1575 }
1576 SendMessage(fToolbarWindow, TB_GETRECT, notifyInfo->iItem, reinterpret_cast<LPARAM>(&bounds));
1577 ::MapWindowPoints(fToolbarWindow, NULL, reinterpret_cast<POINT *>(&bounds), 2);
1578 switch (notifyInfo->iItem)
1579 {
1580 case IDM_GOTO_BACK:
1581 newMenu = CreatePopupMenu();
1583 hResult = browserService->GetTravelLog(&travelLog);
1584 hResult = travelLog->InsertMenuEntries(browserService, newMenu, 0, 1, 9, TLMENUF_BACK);
1585 commandInfo.cmdID = 0x1d;
1586 hResult = IUnknown_QueryStatus(browserService, CGID_Explorer, 1, &commandInfo, NULL);
1587 if ((commandInfo.cmdf & (OLECMDF_ENABLED | OLECMDF_LATCHED)) == OLECMDF_ENABLED &&
1588 travelLog->CountEntries(browserService) > 1)
1589 {
1590 AppendMenuW(newMenu, MF_SEPARATOR, -1, L"");
1591
1592 if (LoadStringW(_AtlBaseModule.GetResourceInstance(),
1593 IDS_HISTORYTEXT, templateString, sizeof(templateString) / sizeof(wchar_t)) == 0)
1594 StringCbCopyW(templateString, sizeof(templateString), L"&History\tCtrl+H");
1595
1596 AppendMenuW(newMenu, MF_STRING /* | MF_OWNERDRAW */, IDM_EXPLORERBAR_HISTORY, templateString);
1597 }
1598 params.cbSize = sizeof(params);
1599 params.rcExclude = bounds;
1600 selectedItem = TrackPopupMenuEx(newMenu, TPM_LEFTALIGN | TPM_TOPALIGN | TPM_RETURNCMD,
1601 bounds.left, bounds.bottom, m_hWnd, &params);
1602 if (selectedItem == IDM_EXPLORERBAR_HISTORY)
1603 {
1604 V_VT(&parmIn) = VT_I4;
1605 V_I4(&parmIn) = 1;
1606 Exec(&CGID_Explorer, 0x1d, 2, &parmIn, NULL);
1607 }
1608 else if (selectedItem != 0)
1609 hResult = travelLog->Travel(browserService, -selectedItem);
1610 DestroyMenu(newMenu);
1611 break;
1612 case IDM_GOTO_FORWARD:
1613 newMenu = CreatePopupMenu();
1615 hResult = browserService->GetTravelLog(&travelLog);
1616 hResult = travelLog->InsertMenuEntries(browserService, newMenu, 0, 1, 9, TLMENUF_FORE);
1617 commandInfo.cmdID = 0x1d;
1618 hResult = IUnknown_QueryStatus(browserService, CGID_Explorer, 1, &commandInfo, NULL);
1619 if ((commandInfo.cmdf & (OLECMDF_ENABLED | OLECMDF_LATCHED)) == OLECMDF_ENABLED &&
1620 travelLog->CountEntries(browserService) > 1)
1621 {
1622 AppendMenuW(newMenu, MF_SEPARATOR, -1, L"");
1623
1624 if (LoadStringW(_AtlBaseModule.GetResourceInstance(),
1625 IDS_HISTORYTEXT, templateString, sizeof(templateString) / sizeof(wchar_t)) == 0)
1626 StringCbCopyW(templateString, sizeof(templateString), L"&History\tCtrl+H");
1627
1628 AppendMenuW(newMenu, MF_STRING /* | MF_OWNERDRAW */, IDM_EXPLORERBAR_HISTORY, templateString);
1629 }
1630 params.cbSize = sizeof(params);
1631 params.rcExclude = bounds;
1632 selectedItem = TrackPopupMenuEx(newMenu, TPM_LEFTALIGN | TPM_TOPALIGN | TPM_RETURNCMD,
1633 bounds.left, bounds.bottom, m_hWnd, &params);
1634 if (selectedItem == IDM_EXPLORERBAR_HISTORY)
1635 {
1636 V_VT(&parmIn) = VT_I4;
1637 V_I4(&parmIn) = 1;
1638 Exec(&CGID_Explorer, 0x1d, 2, &parmIn, NULL);
1639 }
1640 else if (selectedItem != 0)
1641 hResult = travelLog->Travel(browserService, selectedItem);
1642 DestroyMenu(newMenu);
1643 break;
1644 case gViewsCommandID:
1645 VARIANT inValue;
1646 CComVariant outValue;
1647 HRESULT hResult;
1648
1649 V_VT(&inValue) = VT_INT_PTR;
1650 V_INTREF(&inValue) = reinterpret_cast<INT *>(&bounds);
1651
1652 if (fCommandTarget.p != NULL)
1653 hResult = fCommandTarget->Exec(&fCommandCategory, FCIDM_SHVIEW_AUTOARRANGE, 1, &inValue, &outValue);
1654 // pvaOut is VT_I4 with value 0x403
1655 break;
1656 }
1657 return TBDDRET_DEFAULT;
1658}
virtual HRESULT STDMETHODCALLTYPE Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
#define IDS_HISTORYTEXT
Definition: resource.h:129
#define IDM_EXPLORERBAR_HISTORY
Definition: resource.h:42
HRESULT WINAPI IUnknown_QueryService(IUnknown *, REFGUID, REFIID, LPVOID *)
Definition: ordinal.c:1497
GLenum const GLfloat * params
Definition: glext.h:5645
static const int gViewsCommandID
#define L(x)
Definition: ntvdm.h:50
#define TBDDRET_DEFAULT
Definition: commctrl.h:1424
#define TB_GETRECT
Definition: commctrl.h:1153
#define SID_SShellBrowser
Definition: shlguid.h:128
#define TLMENUF_BACK
Definition: shlobj.h:2727
#define TLMENUF_FORE
Definition: shlobj.h:2728
#define FCIDM_SHVIEW_AUTOARRANGE
Definition: shresdef.h:830
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:166
HWND hwndFrom
Definition: winuser.h:3156
LONG left
Definition: windef.h:306
int32_t INT
Definition: typedefs.h:58
HMENU WINAPI CreatePopupMenu(void)
Definition: menu.c:838
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define MF_STRING
Definition: winuser.h:138
BOOL WINAPI TrackPopupMenuEx(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _In_ HWND, _In_opt_ LPTPMPARAMS)
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
#define MF_SEPARATOR
Definition: winuser.h:137
BOOL WINAPI AppendMenuW(_In_ HMENU, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR)

◆ OnMouseMove()

LRESULT CInternetToolbar::OnMouseMove ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 1871 of file internettoolbar.cpp.

1872{
1873 bHandled = FALSE;
1874 if (!fSizing)
1875 return 0;
1876
1877 DWORD msgp = GetMessagePos();
1878
1879 POINT pt;
1880 pt.x = GET_X_LPARAM(msgp);
1881 pt.y = GET_Y_LPARAM(msgp);
1882
1884
1885 bHandled = TRUE;
1886 return 0;
1887}
HRESULT ReserveBorderSpace(LONG maxHeight=-1)
#define pt(x, y)
Definition: drawing.c:79

Referenced by OnLUp().

◆ OnNavigateCommand()

LRESULT CInternetToolbar::OnNavigateCommand ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

◆ OnNotify()

LRESULT CInternetToolbar::OnNotify ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 1829 of file internettoolbar.cpp.

1830{
1831 NMHDR *notifyHeader;
1832 LRESULT theResult;
1833 HRESULT hResult;
1834
1835 notifyHeader = reinterpret_cast<NMHDR *>(lParam);
1836
1837 hResult = OnWinEvent(notifyHeader->hwndFrom, uMsg, wParam, lParam, &theResult);
1838
1839 bHandled = hResult == S_OK;
1840
1841 return FAILED_UNEXPECTEDLY(hResult) ? 0 : theResult;
1842}

◆ OnQueryDelete()

LRESULT CInternetToolbar::OnQueryDelete ( UINT  idControl,
NMHDR pNMHDR,
BOOL bHandled 
)

Definition at line 1665 of file internettoolbar.cpp.

1666{
1667 return 1;
1668}

◆ OnQueryInsert()

LRESULT CInternetToolbar::OnQueryInsert ( UINT  idControl,
NMHDR pNMHDR,
BOOL bHandled 
)

Definition at line 1660 of file internettoolbar.cpp.

1661{
1662 return 1;
1663}

◆ OnSearch()

LRESULT CInternetToolbar::OnSearch ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)

Definition at line 1527 of file internettoolbar.cpp.

1528{
1529 IUnknown_Exec(fSite, CGID_Explorer, 0x1c, 1, NULL, NULL);
1530 return 1;
1531}

◆ OnSetCursor()

LRESULT CInternetToolbar::OnSetCursor ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 1766 of file internettoolbar.cpp.

1767{
1768 if ((short)lParam != HTCLIENT || (HWND)wParam != m_hWnd)
1769 {
1770 bHandled = FALSE;
1771 return 0;
1772 }
1774 return 1;
1775}
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
#define IDC_SIZENS
Definition: winuser.h:695
#define HTCLIENT
Definition: winuser.h:2474
#define LoadCursor
Definition: winuser.h:5811

◆ OnSettingsChange()

LRESULT CInternetToolbar::OnSettingsChange ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 1926 of file internettoolbar.cpp.

1927{
1928 /* Refresh toolbar locked state */
1930
1931 return 0;
1932}

◆ OnSize()

LRESULT CInternetToolbar::OnSize ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 1756 of file internettoolbar.cpp.

1757{
1758 if (wParam != SIZE_MINIMIZED)
1759 {
1762 }
1763 return 1;
1764}
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_NOMOVE
Definition: winuser.h:1243
#define SIZE_MINIMIZED
Definition: winuser.h:2505
#define SWP_NOOWNERZORDER
Definition: winuser.h:1248
#define SWP_NOZORDER
Definition: winuser.h:1246

◆ OnTipText()

LRESULT CInternetToolbar::OnTipText ( UINT  idControl,
NMHDR pNMHDR,
BOOL bHandled 
)

Definition at line 1777 of file internettoolbar.cpp.

1778{
1779 CComPtr<IBrowserService> browserService;
1780 CComPtr<ITravelLog> travelLog;
1781 TOOLTIPTEXTW *pTTTW;
1782 UINT nID;
1783 HRESULT hResult;
1784 wchar_t tempString[300];
1785
1786 pTTTW = reinterpret_cast<TOOLTIPTEXTW *>(pNMHDR);
1787 if ((pTTTW->uFlags & TTF_IDISHWND) != 0)
1788 nID = ::GetDlgCtrlID((HWND)pNMHDR->idFrom);
1789 else
1790 nID = (UINT)pNMHDR->idFrom;
1791
1792 if (nID != 0)
1793 {
1794 if (nID == (UINT)IDM_GOTO_BACK || nID == (UINT)IDM_GOTO_FORWARD)
1795 {
1796 // TODO: Should this call QueryService?
1797 hResult = fSite->QueryInterface(IID_PPV_ARG(IBrowserService, &browserService));
1798 hResult = browserService->GetTravelLog(&travelLog);
1799 hResult = travelLog->GetToolTipText(browserService,
1800 (nID == (UINT)IDM_GOTO_BACK) ? TLOG_BACK : TLOG_FORE,
1801 0, tempString, 299);
1802 if (FAILED_UNEXPECTEDLY(hResult))
1803 {
1804 bHandled = FALSE;
1805 return 0;
1806 }
1807 }
1808 else
1809 tempString[0] = 0;
1810 wcsncpy (pTTTW->szText, tempString, sizeof(pTTTW->szText) / sizeof(wchar_t));
1811 ::SetWindowPos(pNMHDR->hwndFrom, HWND_TOP, 0, 0, 0, 0,
1813 return 0;
1814 }
1815 return 0;
1816}
if(dx< 0)
Definition: linetemp.h:194
unsigned int UINT
Definition: ndis.h:50
#define TOOLTIPTEXTW
Definition: commctrl.h:1884
#define TTF_IDISHWND
Definition: commctrl.h:1764
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
#define TLOG_FORE
Definition: shlobj.h:2723
#define TLOG_BACK
Definition: shlobj.h:2722
UINT_PTR idFrom
Definition: winuser.h:3157
#define SWP_NOACTIVATE
Definition: winuser.h:1241
#define SWP_NOSIZE
Definition: winuser.h:1244
#define HWND_TOP
Definition: winuser.h:1206
int WINAPI GetDlgCtrlID(_In_ HWND)

◆ OnTravelBack()

LRESULT CInternetToolbar::OnTravelBack ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)

Definition at line 1497 of file internettoolbar.cpp.

1498{
1499 CComPtr<IWebBrowser> webBrowser;
1500 HRESULT hResult;
1501
1502 hResult = IUnknown_QueryService(fSite, SID_SShellBrowser, IID_PPV_ARG(IWebBrowser, &webBrowser));
1503 if (FAILED_UNEXPECTEDLY(hResult))
1504 return 0;
1505 hResult = webBrowser->GoBack();
1506 return 1;
1507}

◆ OnTravelForward()

LRESULT CInternetToolbar::OnTravelForward ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)

Definition at line 1509 of file internettoolbar.cpp.

1510{
1511 CComPtr<IWebBrowser> webBrowser;
1512 HRESULT hResult;
1513
1514 hResult = IUnknown_QueryService(fSite, SID_SShellBrowser, IID_PPV_ARG(IWebBrowser, &webBrowser));
1515 if (FAILED_UNEXPECTEDLY(hResult))
1516 return 0;
1517 hResult = webBrowser->GoForward();
1518 return 1;
1519}

◆ OnUpLevel()

LRESULT CInternetToolbar::OnUpLevel ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)

Definition at line 1521 of file internettoolbar.cpp.

1522{
1523 IUnknown_Exec(fSite, CGID_ShellBrowser, IDM_GOTO_UPONELEVEL, 0, NULL, NULL);
1524 return 1;
1525}

◆ OnWinEvent()

HRESULT STDMETHODCALLTYPE CInternetToolbar::OnWinEvent ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
LRESULT theResult 
)
virtual

Definition at line 1407 of file internettoolbar.cpp.

1409{
1410 HRESULT hResult;
1411
1412 if (fMenuBar)
1413 {
1414 hResult = IUnknown_RelayWinEvent(fMenuBar, hWnd, uMsg, wParam, lParam, theResult);
1415 if (hResult != S_FALSE)
1416 return hResult;
1417 }
1418
1419 if (fNavigationBar)
1420 {
1421 hResult = IUnknown_RelayWinEvent(fNavigationBar, hWnd, uMsg, wParam, lParam, theResult);
1422 if (hResult != S_FALSE)
1423 return hResult;
1424 }
1425
1426 if (fLogoBar)
1427 {
1428 hResult = IUnknown_RelayWinEvent(fLogoBar, hWnd, uMsg, wParam, lParam, theResult);
1429 if (hResult != S_FALSE)
1430 return hResult;
1431 }
1432
1433 return S_FALSE;
1434}
HWND hWnd
Definition: settings.c:17
HRESULT IUnknown_RelayWinEvent(IUnknown *punk, HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult)

Referenced by OnCommand(), and OnNotify().

◆ OnWinIniChange()

LRESULT CInternetToolbar::OnWinIniChange ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 1904 of file internettoolbar.cpp.

1905{
1906 HRESULT hr;
1907 HWND hwndMenu;
1908
1909 hr = IUnknown_GetWindow(fMenuBar, &hwndMenu);
1911 return 0;
1912
1913 CComPtr<IWinEventHandler> menuWinEventHandler;
1914 hr = fMenuBar->QueryInterface(IID_PPV_ARG(IWinEventHandler, &menuWinEventHandler));
1916 return 0;
1917
1918 LRESULT lres;
1919 hr = menuWinEventHandler->OnWinEvent(hwndMenu, uMsg, wParam, lParam, &lres);
1921 return 0;
1922
1923 return lres;
1924}

◆ QueryBand()

HRESULT STDMETHODCALLTYPE CInternetToolbar::QueryBand ( DWORD  dwBandID,
IDeskBand **  ppstb,
DWORD pdwState,
LPWSTR  pszName,
int  cchName 
)
virtual

Implements IBandSite.

Definition at line 1454 of file internettoolbar.cpp.

1456{
1457 if (ppstb == NULL)
1458 return E_POINTER;
1459 if (dwBandID == ITBBID_MENUBAND && fMenuBar.p != NULL)
1460 return fMenuBar->QueryInterface(IID_PPV_ARG(IDeskBand, ppstb));
1461 //if (dwBandID == ITBBID_BRANDBAND && fLogoBar.p != NULL)
1462 // return fLogoBar->QueryInterface(IID_PPV_ARG(IDeskBand, ppstb));
1463 *ppstb = NULL;
1464 return E_FAIL;
1465}

◆ QueryService()

HRESULT STDMETHODCALLTYPE CInternetToolbar::QueryService ( REFGUID  guidService,
REFIID  riid,
void **  ppvObject 
)
virtual

Implements IServiceProvider.

Definition at line 1388 of file internettoolbar.cpp.

1389{
1390 HRESULT hResult;
1391
1392 if (IsEqualIID(guidService, IID_IBandSite))
1393 return this->QueryInterface(riid, ppvObject);
1394 if (IsEqualIID(guidService, SID_IBandProxy))
1395 {
1396 if (fBandProxy.p == NULL)
1397 {
1398 hResult = CreateAndInitBandProxy();
1399 if (FAILED_UNEXPECTEDLY(hResult))
1400 return hResult;
1401 }
1402 return fBandProxy->QueryInterface(riid, ppvObject);
1403 }
1404 return IUnknown_QueryService(fSite, guidService, riid, ppvObject);
1405}
HRESULT CreateAndInitBandProxy()
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082

Referenced by CDockSite::QueryService().

◆ QueryStatus()

HRESULT STDMETHODCALLTYPE CInternetToolbar::QueryStatus ( const GUID pguidCmdGroup,
ULONG  cCmds,
OLECMD  prgCmds[],
OLECMDTEXT pCmdText 
)
virtual

Implements IOleCommandTarget.

Definition at line 1101 of file internettoolbar.cpp.

1103{
1104 if (IsEqualIID(*pguidCmdGroup, CGID_PrivCITCommands))
1105 {
1106 while (cCmds != 0)
1107 {
1108 switch (prgCmds->cmdID)
1109 {
1110 case ITID_TEXTLABELS: // Text Labels state
1111 prgCmds->cmdf = OLECMDF_SUPPORTED;
1112 break;
1113 case ITID_TOOLBARBANDSHOWN: // toolbar visibility
1114 prgCmds->cmdf = OLECMDF_SUPPORTED | OLECMDF_ENABLED;
1116 prgCmds->cmdf |= OLECMDF_LATCHED;
1117 break;
1118 case ITID_ADDRESSBANDSHOWN: // address bar visibility
1119 prgCmds->cmdf = OLECMDF_SUPPORTED | OLECMDF_ENABLED;
1121 prgCmds->cmdf |= OLECMDF_LATCHED;
1122 break;
1123 case ITID_LINKSBANDSHOWN: // links bar visibility
1124 prgCmds->cmdf = 0;
1125 break;
1126 case ITID_MENUBANDSHOWN: // Menubar band visibility
1127 prgCmds->cmdf = OLECMDF_SUPPORTED;
1128 if (fMenuBar)
1129 prgCmds->cmdf |= OLECMDF_LATCHED;
1130 break;
1131 case ITID_AUTOHIDEENABLED: // Auto hide enabled/disabled
1132 prgCmds->cmdf = 0;
1133 break;
1134 case ITID_CUSTOMIZEENABLED: // customize enabled
1135 prgCmds->cmdf = OLECMDF_SUPPORTED;
1136 break;
1137 case ITID_TOOLBARLOCKED: // lock toolbars
1138 prgCmds->cmdf = OLECMDF_SUPPORTED | OLECMDF_ENABLED;
1139 if (pSettings->fLocked)
1140 prgCmds->cmdf |= OLECMDF_LATCHED;
1141 break;
1142 default:
1143 prgCmds->cmdf = 0;
1144 break;
1145 }
1146 prgCmds++;
1147 cCmds--;
1148 }
1149 return S_OK;
1150 }
1151 return E_FAIL;
1152}
#define ITID_AUTOHIDEENABLED
Definition: undocshell.h:756
#define ITID_MENUBANDSHOWN
Definition: undocshell.h:755

◆ RefreshLockedToolbarState()

void CInternetToolbar::RefreshLockedToolbarState ( )

Definition at line 723 of file internettoolbar.cpp.

724{
725 REBARBANDINFOW rebarBandInfo;
726 int bandCount;
727 CDockSite *dockSite;
728
729 rebarBandInfo.cbSize = sizeof(rebarBandInfo);
730 rebarBandInfo.fMask = RBBIM_STYLE | RBBIM_LPARAM;
731 bandCount = (int)SendMessage(fMainReBar, RB_GETBANDCOUNT, 0, 0);
732 for (INT x = 0; x < bandCount; x++)
733 {
734 SendMessage(fMainReBar, RB_GETBANDINFOW, x, (LPARAM)&rebarBandInfo);
735 dockSite = reinterpret_cast<CDockSite *>(rebarBandInfo.lParam);
736 if (dockSite != NULL)
737 {
738 rebarBandInfo.fStyle &= ~(RBBS_NOGRIPPER | RBBS_GRIPPERALWAYS);
739 if ((dockSite->fFlags & CDockSite::ITF_NOGRIPPER) || pSettings->fLocked)
740 rebarBandInfo.fStyle |= RBBS_NOGRIPPER;
742 rebarBandInfo.fStyle |= RBBS_GRIPPERALWAYS;
743 SendMessage(fMainReBar, RB_SETBANDINFOW, x, (LPARAM)&rebarBandInfo);
744 }
745 }
747}
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define RB_SETBANDINFOW
Definition: commctrl.h:1584
#define RBBS_NOGRIPPER
Definition: commctrl.h:1497
#define RBBIM_LPARAM
Definition: commctrl.h:1512
#define RB_GETBANDCOUNT
Definition: commctrl.h:1585
#define RBBS_GRIPPERALWAYS
Definition: commctrl.h:1496

Referenced by LockUnlockToolbars(), and OnSettingsChange().

◆ RemoveBand()

HRESULT STDMETHODCALLTYPE CInternetToolbar::RemoveBand ( DWORD  dwBandID)
virtual

Implements IBandSite.

Definition at line 1473 of file internettoolbar.cpp.

1474{
1476 return E_NOTIMPL;
1477}

◆ ReserveBorderSpace()

HRESULT CInternetToolbar::ReserveBorderSpace ( LONG  maxHeight = -1)

Definition at line 631 of file internettoolbar.cpp.

632{
633 CComPtr<IDockingWindowSite> dockingWindowSite;
634 RECT availableBorderSpace;
635
636 HRESULT hResult = fSite->QueryInterface(IID_PPV_ARG(IDockingWindowSite, &dockingWindowSite));
637 if (FAILED_UNEXPECTEDLY(hResult))
638 return hResult;
639 hResult = dockingWindowSite->GetBorderDW(static_cast<IDockingWindow *>(this), &availableBorderSpace);
640 if (FAILED_UNEXPECTEDLY(hResult))
641 return hResult;
642
643 if (maxHeight && availableBorderSpace.bottom - availableBorderSpace.top > maxHeight)
644 {
645 availableBorderSpace.bottom = availableBorderSpace.top + maxHeight;
646 }
647
648 return ResizeBorderDW(&availableBorderSpace, fSite, FALSE);
649}
virtual HRESULT STDMETHODCALLTYPE ResizeBorderDW(LPCRECT prcBorder, IUnknown *punkToolbarSite, BOOL fReserved)

Referenced by OnMouseMove(), RefreshLockedToolbarState(), ShowDW(), and ToggleBandVisibility().

◆ ResizeBorderDW()

HRESULT STDMETHODCALLTYPE CInternetToolbar::ResizeBorderDW ( LPCRECT  prcBorder,
IUnknown punkToolbarSite,
BOOL  fReserved 
)
virtual

Implements IDockingWindow.

Definition at line 961 of file internettoolbar.cpp.

963{
964 RECT neededBorderSpace;
965 RECT availableBorderSpace = *prcBorder;
966
967 SendMessage(fMainReBar, RB_SIZETORECT, RBSTR_CHANGERECT, reinterpret_cast<LPARAM>(&availableBorderSpace));
968
969 // RBSTR_CHANGERECT does not seem to set the proper size in the rect.
970 // Let's make sure we fetch the actual size properly.
971 ::GetWindowRect(fMainReBar, &availableBorderSpace);
972 neededBorderSpace.left = 0;
973 neededBorderSpace.top = availableBorderSpace.bottom - availableBorderSpace.top;
974 if (!pSettings->fLocked)
975 neededBorderSpace.top += 3;
976 neededBorderSpace.right = 0;
977 neededBorderSpace.bottom = 0;
978
979 CComPtr<IDockingWindowSite> dockingWindowSite;
980
981 HRESULT hResult = fSite->QueryInterface(IID_PPV_ARG(IDockingWindowSite, &dockingWindowSite));
982 if (FAILED_UNEXPECTEDLY(hResult))
983 return hResult;
984
985 hResult = dockingWindowSite->RequestBorderSpaceDW(static_cast<IDockingWindow *>(this), &neededBorderSpace);
986 if (FAILED_UNEXPECTEDLY(hResult))
987 return hResult;
988
989 hResult = dockingWindowSite->SetBorderSpaceDW(static_cast<IDockingWindow *>(this), &neededBorderSpace);
990 if (FAILED_UNEXPECTEDLY(hResult))
991 return hResult;
992
993 return S_OK;
994}
#define RBSTR_CHANGERECT
Definition: commctrl.h:1596
#define RB_SIZETORECT
Definition: commctrl.h:1598
LONG right
Definition: windef.h:308

Referenced by ReserveBorderSpace().

◆ Save()

HRESULT STDMETHODCALLTYPE CInternetToolbar::Save ( IStream pStm,
BOOL  fClearDirty 
)
virtual

Definition at line 1014 of file internettoolbar.cpp.

1015{
1016 return E_NOTIMPL;
1017}

◆ SendToolbarMsg()

HRESULT STDMETHODCALLTYPE CInternetToolbar::SendToolbarMsg ( const GUID pguidCmdGroup,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
LRESULT result 
)
virtual

Definition at line 1305 of file internettoolbar.cpp.

1307{
1308 return E_NOTIMPL;
1309}

◆ SetBandSiteInfo()

HRESULT STDMETHODCALLTYPE CInternetToolbar::SetBandSiteInfo ( const BANDSITEINFO pbsinfo)
virtual

Implements IBandSite.

Definition at line 1485 of file internettoolbar.cpp.

1486{
1488 return E_NOTIMPL;
1489}

◆ SetBandState()

HRESULT STDMETHODCALLTYPE CInternetToolbar::SetBandState ( DWORD  dwBandID,
DWORD  dwMask,
DWORD  dwState 
)
virtual

Implements IBandSite.

Definition at line 1467 of file internettoolbar.cpp.

1468{
1470 return E_NOTIMPL;
1471}

◆ SetCommandTarget()

HRESULT STDMETHODCALLTYPE CInternetToolbar::SetCommandTarget ( IUnknown theTarget,
GUID category,
long  param14 
)
virtual

Definition at line 1233 of file internettoolbar.cpp.

1234{
1235 HRESULT hResult;
1236
1237 TRACE("SetCommandTarget %p category %s param %d\n", theTarget, wine_dbgstr_guid(category), param14);
1238
1239 fCommandTarget.Release();
1241 if (FAILED_UNEXPECTEDLY(hResult))
1242 return hResult;
1244 return S_OK;
1245}
static __inline const char * wine_dbgstr_guid(const GUID *id)
Definition: debug.h:197
#define TRACE(s)
Definition: solgame.cpp:4

◆ SetImageList()

HRESULT STDMETHODCALLTYPE CInternetToolbar::SetImageList ( const GUID pguidCmdGroup,
HIMAGELIST  param10,
HIMAGELIST  param14,
HIMAGELIST  param18 
)
virtual

Definition at line 1311 of file internettoolbar.cpp.

1313{
1314 return E_NOTIMPL;
1315}

◆ SetSite()

HRESULT STDMETHODCALLTYPE CInternetToolbar::SetSite ( IUnknown pUnkSite)
virtual

Implements IObjectWithSite.

Definition at line 1327 of file internettoolbar.cpp.

1328{
1329 CComPtr<IBrowserService> browserService;
1330 HWND ownerWindow;
1331 HWND dockContainer;
1332 HRESULT hResult;
1333
1334 if (pUnkSite == NULL)
1335 {
1336 hResult = AtlUnadvise(fSite, DIID_DWebBrowserEvents, fAdviseCookie);
1338 DestroyWindow();
1339 fSite.Release();
1340 }
1341 else
1342 {
1343 // get window handle of owner
1344 hResult = IUnknown_GetWindow(pUnkSite, &ownerWindow);
1345 if (FAILED_UNEXPECTEDLY(hResult))
1346 return hResult;
1347 if (ownerWindow == NULL)
1348 return E_FAIL;
1349
1350 // Get settings from owner window
1352
1353 // create dock container
1354 fSite = pUnkSite;
1355 dockContainer = SHCreateWorkerWindowW(0, ownerWindow, 0,
1357 if (dockContainer == NULL)
1358 return E_FAIL;
1359 SubclassWindow(dockContainer);
1360
1361 // create rebar in dock container
1367 0, 0, 700, 60, dockContainer, NULL, _AtlBaseModule.GetModuleInstance(), NULL);
1368 if (fMainReBar == NULL)
1369 return E_FAIL;
1370
1371 // take advice to watch events
1372 hResult = IUnknown_QueryService(pUnkSite, SID_SShellBrowser, IID_PPV_ARG(IBrowserService, &browserService));
1373 hResult = AtlAdvise(browserService, static_cast<IDispatch *>(this), DIID_DWebBrowserEvents, &fAdviseCookie);
1374 }
1375 return S_OK;
1376}
Arabic default style
Definition: afstyles.h:94
void Release()
Definition: atlcomcli.h:170
HRESULT WINAPI AtlAdvise(IUnknown *pUnkCP, IUnknown *pUnk, const IID *iid, DWORD *pdw)
Definition: atl.c:45
HRESULT WINAPI AtlUnadvise(IUnknown *pUnkCP, const IID *iid, DWORD dw)
Definition: atl.c:73
#define BWM_GETSETTINGSPTR
Definition: settings.h:11
HWND WINAPI SHCreateWorkerWindowW(WNDPROC wndProc, HWND hWndParent, DWORD dwExStyle, DWORD dwStyle, HMENU hMenu, LONG_PTR wnd_extra)
Definition: ordinal.c:2921
#define WS_CHILD
Definition: pedump.c:617
#define WS_BORDER
Definition: pedump.c:625
#define WS_VISIBLE
Definition: pedump.c:620
#define WS_CLIPSIBLINGS
Definition: pedump.c:618
#define WS_CLIPCHILDREN
Definition: pedump.c:619
#define RBS_REGISTERDROP
Definition: commctrl.h:1474
#define REBARCLASSNAMEW
Definition: commctrl.h:1463
#define RBS_BANDBORDERS
Definition: commctrl.h:1472
#define RBS_AUTOSIZE
Definition: commctrl.h:1475
#define CCS_NODIVIDER
Definition: commctrl.h:2248
#define CCS_TOP
Definition: commctrl.h:2242
#define RBS_VARHEIGHT
Definition: commctrl.h:1471
#define CCS_NOPARENTALIGN
Definition: commctrl.h:2246
#define RBS_DBLCLKTOGGLE
Definition: commctrl.h:1477
#define SubclassWindow(hwnd, lpfn)
Definition: windowsx.h:542
#define CreateWindowEx
Definition: winuser.h:5754
#define WS_EX_RIGHTSCROLLBAR
Definition: winuser.h:401
#define WS_EX_TOOLWINDOW
Definition: winuser.h:404
#define WS_EX_LTRREADING
Definition: winuser.h:393
BOOL WINAPI DestroyWindow(_In_ HWND)
#define WS_EX_LEFT
Definition: winuser.h:391

Referenced by CloseDW().

◆ SetState() [1/2]

HRESULT STDMETHODCALLTYPE CInternetToolbar::SetState ( const GUID pguidCmdGroup,
long  commandID,
long  theState 
)
virtual

Definition at line 1284 of file internettoolbar.cpp.

1285{
1286 // map the command id
1287 ::SendMessage(fToolbarWindow, TB_SETSTATE, commandID, MAKELONG(theState, 0));
1288 return S_OK;
1289}
#define TB_SETSTATE
Definition: commctrl.h:1054

◆ SetState() [2/2]

HRESULT CInternetToolbar::SetState ( const GUID pguidCmdGroup,
long  commandID,
OLECMD pcmd 
)

Definition at line 749 of file internettoolbar.cpp.

750{
751 long state = 0;
752 if (pcmd->cmdf & OLECMDF_ENABLED)
754 if (pcmd->cmdf & OLECMDF_LATCHED)
756 return SetState(pguidCmdGroup, commandID, state);
757}
static int state
Definition: maze.c:121
#define TBSTATE_CHECKED
Definition: commctrl.h:972

Referenced by CommandStateChanged(), and SetState().

◆ ShowDW()

HRESULT STDMETHODCALLTYPE CInternetToolbar::ShowDW ( BOOL  fShow)
virtual

Implements IDockingWindow.

Definition at line 884 of file internettoolbar.cpp.

885{
886 HRESULT hResult;
887
888 // show the bar here
889 if (fShow)
890 {
891 hResult = ReserveBorderSpace();
892 if (FAILED_UNEXPECTEDLY(hResult))
893 return hResult;
894 }
895
896 if (fMenuBar)
897 {
898 hResult = IUnknown_ShowDW(fMenuBar, fShow);
899 if (FAILED_UNEXPECTEDLY(hResult))
900 return hResult;
901 }
902
903 if (fControlsBar)
904 {
905 hResult = IUnknown_ShowDW(fControlsBar, fShow);
906 if (FAILED_UNEXPECTEDLY(hResult))
907 return hResult;
908 }
909 if (fNavigationBar)
910 {
911 hResult = IUnknown_ShowDW(fNavigationBar, fShow);
912 if (FAILED_UNEXPECTEDLY(hResult))
913 return hResult;
914 }
915 if (fLogoBar)
916 {
917 hResult = IUnknown_ShowDW(fLogoBar, fShow);
918 if (FAILED_UNEXPECTEDLY(hResult))
919 return hResult;
920 }
921 return S_OK;
922}
HRESULT IUnknown_ShowDW(IUnknown *punk, BOOL fShow)

◆ ToggleBandVisibility()

HRESULT CInternetToolbar::ToggleBandVisibility ( int  BandID)

Definition at line 1083 of file internettoolbar.cpp.

1084{
1085 int index = (int)SendMessage(fMainReBar, RB_IDTOINDEX, BandID, 0);
1086
1089
1090 if (bandInfo.fStyle & RBBS_HIDDEN)
1091 bandInfo.fStyle &= ~RBBS_HIDDEN;
1092 else
1093 bandInfo.fStyle |= RBBS_HIDDEN;
1094
1096
1098 return S_OK;
1099}

Referenced by Exec(), and OnContextMenu().

◆ TranslateAcceleratorIO()

HRESULT STDMETHODCALLTYPE CInternetToolbar::TranslateAcceleratorIO ( LPMSG  lpMsg)
virtual

Definition at line 849 of file internettoolbar.cpp.

850{
852
853 if (fMenuBar)
855 if (hr == S_OK)
856 return hr;
857
858 if (fControlsBar)
860 if (hr == S_OK)
861 return hr;
862
863 if (fNavigationBar)
865 if (hr == S_OK)
866 return hr;
867
868 return S_FALSE;
869}
HRESULT WINAPI IUnknown_TranslateAcceleratorIO(IUnknown *lpUnknown, LPMSG lpMsg)
Definition: ordinal.c:4184

◆ UIActivateIO()

HRESULT STDMETHODCALLTYPE CInternetToolbar::UIActivateIO ( BOOL  fActivate,
LPMSG  lpMsg 
)
virtual

Definition at line 822 of file internettoolbar.cpp.

823{
824 return E_NOTIMPL;
825}

◆ Unknown1()

HRESULT STDMETHODCALLTYPE CInternetToolbar::Unknown1 ( )
virtual

Definition at line 1247 of file internettoolbar.cpp.

1248{
1249 return E_NOTIMPL;
1250}

Member Data Documentation

◆ fAdviseCookie

DWORD CInternetToolbar::fAdviseCookie

Definition at line 90 of file internettoolbar.h.

Referenced by CInternetToolbar(), and SetSite().

◆ fBandProxy

CComPtr<IBandProxy> CInternetToolbar::fBandProxy

Definition at line 91 of file internettoolbar.h.

Referenced by CreateAndInitBandProxy(), and QueryService().

◆ fCommandCategory

GUID CInternetToolbar::fCommandCategory

Definition at line 88 of file internettoolbar.h.

Referenced by OnForwardToCommandTarget(), OnMenuDropDown(), and SetCommandTarget().

◆ fCommandTarget

CComPtr<IOleCommandTarget> CInternetToolbar::fCommandTarget

Definition at line 87 of file internettoolbar.h.

Referenced by OnForwardToCommandTarget(), OnMenuDropDown(), and SetCommandTarget().

◆ fControlsBar

CComPtr<IUnknown> CInternetToolbar::fControlsBar

Definition at line 84 of file internettoolbar.h.

Referenced by CloseDW(), HasFocusIO(), InitNew(), ShowDW(), and TranslateAcceleratorIO().

◆ fLocked

bool CInternetToolbar::fLocked

Definition at line 79 of file internettoolbar.h.

◆ fLogoBar

CComPtr<IUnknown> CInternetToolbar::fLogoBar

Definition at line 83 of file internettoolbar.h.

Referenced by CloseDW(), InitNew(), OnWinEvent(), and ShowDW().

◆ fMainReBar

◆ fMenuBandWindow

HWND CInternetToolbar::fMenuBandWindow

Definition at line 81 of file internettoolbar.h.

Referenced by CInternetToolbar(), and InitNew().

◆ fMenuBar

CComPtr<IShellMenu> CInternetToolbar::fMenuBar

◆ fMenuCallback

CComPtr<CMenuCallback> CInternetToolbar::fMenuCallback

Definition at line 86 of file internettoolbar.h.

Referenced by CInternetToolbar(), and CreateMenuBar().

◆ fNavigationBar

CComPtr<IUnknown> CInternetToolbar::fNavigationBar

◆ fNavigationWindow

HWND CInternetToolbar::fNavigationWindow

Definition at line 82 of file internettoolbar.h.

Referenced by CInternetToolbar(), InitNew(), and OnContextMenu().

◆ fSite

◆ fSizing

BOOL CInternetToolbar::fSizing

Definition at line 92 of file internettoolbar.h.

Referenced by OnLDown(), OnLUp(), and OnMouseMove().

◆ fStartHeight

LONG CInternetToolbar::fStartHeight

Definition at line 94 of file internettoolbar.h.

Referenced by OnLDown(), and OnMouseMove().

◆ fStartPosition

POINT CInternetToolbar::fStartPosition

Definition at line 93 of file internettoolbar.h.

Referenced by OnLDown(), and OnMouseMove().

◆ fToolbarWindow

HWND CInternetToolbar::fToolbarWindow

◆ pSettings


The documentation for this class was generated from the following files: