ReactOS 0.4.15-dev-5875-g7c755d9
CQuickLaunchBand Class Reference

#include <CQuickLaunchBand.h>

Inheritance diagram for CQuickLaunchBand:
Collaboration diagram for CQuickLaunchBand:

Public Member Functions

 CQuickLaunchBand ()
 
virtual ~CQuickLaunchBand ()
 
HRESULT FinalConstruct ()
 
virtual STDMETHODIMP GetSite (IN REFIID riid, OUT void **ppvSite)
 
virtual STDMETHODIMP SetSite (IN IUnknown *pUnkSite)
 
virtual STDMETHODIMP GetWindow (OUT HWND *phwnd)
 
virtual STDMETHODIMP ContextSensitiveHelp (IN BOOL fEnterMode)
 
virtual STDMETHODIMP ShowDW (IN BOOL bShow)
 
virtual STDMETHODIMP CloseDW (IN DWORD dwReserved)
 
virtual STDMETHODIMP ResizeBorderDW (LPCRECT prcBorder, IUnknown *punkToolbarSite, BOOL fReserved)
 
virtual STDMETHODIMP GetBandInfo (IN DWORD dwBandID, IN DWORD dwViewMode, IN OUT DESKBANDINFO *pdbi)
 
virtual STDMETHODIMP GetClassID (OUT CLSID *pClassID)
 
virtual STDMETHODIMP GetSizeMax (OUT ULARGE_INTEGER *pcbSize)
 
virtual STDMETHODIMP IsDirty ()
 
virtual STDMETHODIMP Load (IN IStream *pStm)
 
virtual STDMETHODIMP Save (IN IStream *pStm, IN BOOL fClearDirty)
 
virtual STDMETHODIMP ContainsWindow (IN HWND hWnd)
 
virtual STDMETHODIMP OnWinEvent (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult)
 
virtual STDMETHODIMP IsWindowOwner (HWND hWnd)
 
virtual STDMETHODIMP Exec (IN const GUID *pguidCmdGroup, IN DWORD nCmdID, IN DWORD nCmdexecopt, IN VARIANT *pvaIn, IN OUT VARIANT *pvaOut)
 
virtual STDMETHODIMP QueryStatus (IN const GUID *pguidCmdGroup, IN ULONG cCmds, IN OUT OLECMD prgCmds[], IN OUT OLECMDTEXT *pCmdText)
 
virtual STDMETHODIMP GetCommandString (UINT_PTR idCmd, UINT uFlags, UINT *pwReserved, LPSTR pszName, UINT cchMax)
 
virtual STDMETHODIMP InvokeCommand (LPCMINVOKECOMMANDINFO pici)
 
virtual STDMETHODIMP QueryContextMenu (HMENU hmenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags)
 
- 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 ()
 
- 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 IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 
- Public Member Functions inherited from IDeskBand
HRESULT GetBandInfo ([in] DWORD dwBandID, [in] DWORD dwViewMode, [in, out] DESKBANDINFO *pdbi)
 
- Public Member Functions inherited from IDockingWindow
HRESULT ShowDW ([in] BOOL fShow)
 
HRESULT CloseDW ([in] DWORD dwReserved)
 
HRESULT ResizeBorderDW ([in] LPCRECT prcBorder, [in] IUnknown *punkToolbarSite, [in] BOOL fReserved)
 
- Public Member Functions inherited from IOleWindow
HRESULT GetWindow ([out] HWND *phwnd)
 
HRESULT ContextSensitiveHelp ([in] BOOL fEnterMode)
 
- Public Member Functions inherited from IPersistStream
HRESULT IsDirty ()
 
HRESULT Load ([in, unique] IStream *pStm)
 
HRESULT Save ([in, unique] IStream *pStm, [in] BOOL fClearDirty)
 
HRESULT GetSizeMax ([out] ULARGE_INTEGER *pcbSize)
 
- Public Member Functions inherited from IPersist
HRESULT GetClassID ([out] CLSID *pClassID)
 
- Public Member Functions inherited from IOleCommandTarget
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)
 
HRESULT QueryContextMenu ([in] HMENU hmenu, [in] UINT indexMenu, [in] UINT idCmdFirst, [in] UINT idCmdLast, [in] UINT uFlags)
 
HRESULT InvokeCommand ([in] LPCMINVOKECOMMANDINFO lpici)
 
HRESULT GetCommandString ([in] UINT_PTR idCmd, [in] UINT uType, [out] UINT *pwReserved, [out, size_is(cchMax)] LPSTR pszName, [in] UINT cchMax)
 

Private Attributes

HWND m_hWndBro
 
CComPtr< IUnknownm_punkISFB
 

Additional Inherited Members

- Public Types inherited from IObjectWithSite
typedef IObjectWithSiteLPOBJECTWITHSITE
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Public Types inherited from IOleWindow
typedef IOleWindowLPOLEWINDOW
 
- Public Types inherited from IPersistStream
typedef IPersistStreamLPPERSISTSTREAM
 
- 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 IContextMenu
typedef IContextMenuLPCONTEXTMENU
 
typedef struct IContextMenu::tagCMINVOKECOMMANDINFO CMINVOKECOMMANDINFO
 
typedef struct IContextMenu::tagCMINVOKECOMMANDINFOLPCMINVOKECOMMANDINFO
 
typedef struct IContextMenu::tagCMInvokeCommandInfoEx CMINVOKECOMMANDINFOEX
 
typedef struct IContextMenu::tagCMInvokeCommandInfoExLPCMINVOKECOMMANDINFOEX
 
- 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)
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 
- Static Public Attributes inherited from IContextMenu
static const WCHAR CMDSTR_NEWFOLDERW [] = {'N','e','w','F','o','l','d','e','r',0}
 
static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0}
 
static const WCHAR CMDSTR_VIEWDETAILSW [] = {'V','i','e','w','D','e','t','a','i','l','s',0}
 

Detailed Description

Definition at line 17 of file CQuickLaunchBand.h.

Constructor & Destructor Documentation

◆ CQuickLaunchBand()

CQuickLaunchBand::CQuickLaunchBand ( )

Definition at line 101 of file CQuickLaunchBand.cpp.

101{}

◆ ~CQuickLaunchBand()

CQuickLaunchBand::~CQuickLaunchBand ( )
virtual

Definition at line 103 of file CQuickLaunchBand.cpp.

103{}

Member Function Documentation

◆ CloseDW()

STDMETHODIMP CQuickLaunchBand::CloseDW ( IN DWORD  dwReserved)
virtual

Definition at line 196 of file CQuickLaunchBand.cpp.

197 {
198 // Internal CISFBand Calls
199 CComPtr<IDeskBand> pIDB;
200 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IDeskBand, &pIDB));
201 if (FAILED(hr))
202 return hr;
203
204 return pIDB->CloseDW(dwReserved);
205 }
CComPtr< IUnknown > m_punkISFB
#define FAILED(hr)
Definition: intsafe.h:51
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:95
HRESULT hr
Definition: shlfolder.c:183
#define IID_PPV_ARG(Itype, ppType)

◆ ContainsWindow()

STDMETHODIMP CQuickLaunchBand::ContainsWindow ( IN HWND  hWnd)
virtual

Definition at line 287 of file CQuickLaunchBand.cpp.

288 {
289 return E_NOTIMPL;
290 }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ContextSensitiveHelp()

STDMETHODIMP CQuickLaunchBand::ContextSensitiveHelp ( IN BOOL  fEnterMode)
virtual

Definition at line 174 of file CQuickLaunchBand.cpp.

175 {
176 // Internal CISFBand Calls
177 CComPtr<IDeskBand> pIDB;
178 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IDeskBand, &pIDB));
179 if (FAILED(hr))
180 return hr;
181
182 return pIDB->ContextSensitiveHelp(fEnterMode);
183 }

◆ Exec()

STDMETHODIMP CQuickLaunchBand::Exec ( IN const GUID pguidCmdGroup,
IN DWORD  nCmdID,
IN DWORD  nCmdexecopt,
IN VARIANT pvaIn,
IN OUT VARIANT pvaOut 
)
virtual

Definition at line 327 of file CQuickLaunchBand.cpp.

328 {
329 // Internal CISFBand Calls
330 CComPtr<IOleCommandTarget> pOCT;
331 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IOleCommandTarget, &pOCT));
332 if (FAILED(hr))
333 return hr;
334
335 return pOCT->Exec(pguidCmdGroup, nCmdID, nCmdexecopt, pvaIn, pvaOut);
336 }

◆ FinalConstruct()

HRESULT CQuickLaunchBand::FinalConstruct ( )

Definition at line 115 of file CQuickLaunchBand.cpp.

116 {
119 return hr;
120
121 CComPtr<IShellFolderBand> pISFB;
122 hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IShellFolderBand, &pISFB));
124 return hr;
125
126 CComPtr<IShellFolder> pISF;
127 hr = SHGetDesktopFolder(&pISF);
129 return hr;
130
131 CComHeapPtr<ITEMIDLIST> pidl(PidlBrowse(m_hWndBro, CSIDL_DESKTOP));
132 if (pidl == NULL)
133 return E_FAIL;
134 pISFB->InitializeSFB(pISF, pidl);
135
136 return hr;
137 }
HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
LPITEMIDLIST PidlBrowse(HWND hwnd, int nCSIDL)
HRESULT WINAPI RSHELL_CISFBand_CreateInstance(REFIID riid, void **ppv)
Definition: CISFBand.cpp:670
#define E_FAIL
Definition: ddrawi.h:102
#define NULL
Definition: types.h:112
#define FAILED_UNEXPECTEDLY(hr)
Definition: shellutils.h:82
#define CSIDL_DESKTOP
Definition: shlobj.h:2025

◆ GetBandInfo()

STDMETHODIMP CQuickLaunchBand::GetBandInfo ( IN DWORD  dwBandID,
IN DWORD  dwViewMode,
IN OUT DESKBANDINFO pdbi 
)
virtual

Definition at line 218 of file CQuickLaunchBand.cpp.

219 {
220 // Internal CISFBand Calls
221 CComPtr<IDeskBand> pIDB;
222 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IDeskBand, &pIDB));
223 if (FAILED(hr))
224 return hr;
225
226 return pIDB->GetBandInfo(dwBandID, dwViewMode, pdbi);
227 }

◆ GetClassID()

STDMETHODIMP CQuickLaunchBand::GetClassID ( OUT CLSID pClassID)
virtual

Definition at line 231 of file CQuickLaunchBand.cpp.

232 {
233 // Internal CISFBand Calls
234 CComPtr<IPersistStream> pIPS;
235 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IPersistStream, &pIPS));
236 if (FAILED(hr))
237 return hr;
238
239 return pIPS->GetClassID(pClassID);
240 }

◆ GetCommandString()

STDMETHODIMP CQuickLaunchBand::GetCommandString ( UINT_PTR  idCmd,
UINT  uFlags,
UINT pwReserved,
LPSTR  pszName,
UINT  cchMax 
)
virtual

Implements IContextMenu.

Definition at line 340 of file CQuickLaunchBand.cpp.

341 {
342 // Internal CISFBand Calls
343 CComPtr<IContextMenu> pICM;
344 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IContextMenu, &pICM));
345 if (FAILED(hr))
346 return hr;
347
348 return pICM->GetCommandString(idCmd, uFlags, pwReserved, pszName, cchMax);
349 }
UINT cchMax
UINT uFlags
Definition: api.c:59

◆ GetSite()

STDMETHODIMP CQuickLaunchBand::GetSite ( IN REFIID  riid,
OUT void **  ppvSite 
)
virtual

Definition at line 151 of file CQuickLaunchBand.cpp.

152 {
153 CComPtr<IObjectWithSite> pIOWS;
154 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IObjectWithSite, &pIOWS));
155 if (FAILED(hr))
156 return hr;
157
158 return pIOWS->GetSite(riid, ppvSite);
159 }
REFIID riid
Definition: atlbase.h:39

◆ GetSizeMax()

STDMETHODIMP CQuickLaunchBand::GetSizeMax ( OUT ULARGE_INTEGER pcbSize)
virtual

Definition at line 274 of file CQuickLaunchBand.cpp.

275 {
276 CComPtr<IPersistStream> pIPS;
277 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IPersistStream, &pIPS));
278 if (FAILED(hr))
279 return hr;
280
281 return pIPS->GetSizeMax(pcbSize);
282 }

◆ GetWindow()

STDMETHODIMP CQuickLaunchBand::GetWindow ( OUT HWND phwnd)
virtual

Definition at line 163 of file CQuickLaunchBand.cpp.

164 {
165 // Internal CISFBand Calls
166 CComPtr<IDeskBand> pIDB;
167 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IDeskBand, &pIDB));
168 if (FAILED(hr))
169 return hr;
170
171 return pIDB->GetWindow(phwnd);
172 }

◆ InvokeCommand()

STDMETHODIMP CQuickLaunchBand::InvokeCommand ( LPCMINVOKECOMMANDINFO  pici)
virtual

Implements IContextMenu.

Definition at line 351 of file CQuickLaunchBand.cpp.

352 {
353 // Internal CISFBand Calls
354 CComPtr<IContextMenu> pICM;
355 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IContextMenu, &pICM));
356 if (FAILED(hr))
357 return hr;
358
359 return pICM->InvokeCommand(pici);
360 }

◆ IsDirty()

STDMETHODIMP CQuickLaunchBand::IsDirty ( void  )
virtual

Implements IPersistStream.

Definition at line 242 of file CQuickLaunchBand.cpp.

243 {
244 // Internal CISFBand Calls
245 CComPtr<IPersistStream> pIPS;
246 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IPersistStream, &pIPS));
247 if (FAILED(hr))
248 return hr;
249
250 return pIPS->IsDirty();
251 }

◆ IsWindowOwner()

STDMETHODIMP CQuickLaunchBand::IsWindowOwner ( HWND  hWnd)
virtual

Definition at line 303 of file CQuickLaunchBand.cpp.

304 {
305 // Internal CISFBand Calls
306 CComPtr<IWinEventHandler> pWEH;
307 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IWinEventHandler, &pWEH));
308 if (FAILED(hr))
309 return hr;
310
311 return pWEH->IsWindowOwner(hWnd);
312 }
HWND hWnd
Definition: settings.c:17

◆ Load()

STDMETHODIMP CQuickLaunchBand::Load ( IN IStream pStm)
virtual

Definition at line 253 of file CQuickLaunchBand.cpp.

254 {
255 CComPtr<IPersistStream> pIPS;
256 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IPersistStream, &pIPS));
257 if (FAILED(hr))
258 return hr;
259
260 return pIPS->Load(pStm);
261 }

◆ OnWinEvent()

STDMETHODIMP CQuickLaunchBand::OnWinEvent ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
LRESULT theResult 
)
virtual

Definition at line 292 of file CQuickLaunchBand.cpp.

293 {
294 // Internal CISFBand Calls
295 CComPtr<IWinEventHandler> pWEH;
296 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IWinEventHandler, &pWEH));
297 if (FAILED(hr))
298 return hr;
299
300 return pWEH->OnWinEvent(hWnd, uMsg, wParam, lParam, theResult);
301 }
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139

◆ QueryContextMenu()

STDMETHODIMP CQuickLaunchBand::QueryContextMenu ( HMENU  hmenu,
UINT  indexMenu,
UINT  idCmdFirst,
UINT  idCmdLast,
UINT  uFlags 
)
virtual

Implements IContextMenu.

Definition at line 362 of file CQuickLaunchBand.cpp.

363 {
364 // Internal CISFBand Calls
365 CComPtr<IContextMenu> pICM;
366 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IContextMenu, &pICM));
367 if (FAILED(hr))
368 return hr;
369
370 return pICM->QueryContextMenu(hmenu, indexMenu, idCmdFirst, idCmdLast, uFlags);
371 }
static HMENU hmenu
Definition: win.c:66

◆ QueryStatus()

STDMETHODIMP CQuickLaunchBand::QueryStatus ( IN const GUID pguidCmdGroup,
IN ULONG  cCmds,
IN OUT OLECMD  prgCmds[],
IN OUT OLECMDTEXT pCmdText 
)
virtual

Definition at line 316 of file CQuickLaunchBand.cpp.

317 {
318 // Internal CISFBand Calls
319 CComPtr<IOleCommandTarget> pOCT;
320 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IOleCommandTarget, &pOCT));
321 if (FAILED(hr))
322 return hr;
323
324 return pOCT->QueryStatus(pguidCmdGroup, cCmds, prgCmds, pCmdText);
325 }

◆ ResizeBorderDW()

STDMETHODIMP CQuickLaunchBand::ResizeBorderDW ( LPCRECT  prcBorder,
IUnknown punkToolbarSite,
BOOL  fReserved 
)
virtual

Implements IDockingWindow.

Definition at line 207 of file CQuickLaunchBand.cpp.

208 {
209 // Internal CISFBand Calls
210 CComPtr<IDeskBand> pIDB;
211 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IDeskBand, &pIDB));
212 if (FAILED(hr))
213 return hr;
214
215 return pIDB->ResizeBorderDW(prcBorder, punkToolbarSite, fReserved);
216 }

◆ Save()

STDMETHODIMP CQuickLaunchBand::Save ( IN IStream pStm,
IN BOOL  fClearDirty 
)
virtual

Definition at line 263 of file CQuickLaunchBand.cpp.

264 {
265 // Internal CISFBand Calls
266 CComPtr<IPersistStream> pIPS;
267 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IPersistStream, &pIPS));
268 if (FAILED(hr))
269 return hr;
270
271 return pIPS->Save(pStm, fClearDirty);
272 }

◆ SetSite()

STDMETHODIMP CQuickLaunchBand::SetSite ( IN IUnknown pUnkSite)
virtual

Definition at line 140 of file CQuickLaunchBand.cpp.

141 {
142 // Internal CISFBand Calls
143 CComPtr<IObjectWithSite> pIOWS;
144 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IObjectWithSite, &pIOWS));
145 if (FAILED(hr))
146 return hr;
147
148 return pIOWS->SetSite(pUnkSite);
149 }

◆ ShowDW()

STDMETHODIMP CQuickLaunchBand::ShowDW ( IN BOOL  bShow)
virtual

Definition at line 185 of file CQuickLaunchBand.cpp.

186 {
187 // Internal CISFBand Calls
188 CComPtr<IDeskBand> pIDB;
189 HRESULT hr = m_punkISFB->QueryInterface(IID_PPV_ARG(IDeskBand, &pIDB));
190 if (FAILED(hr))
191 return hr;
192
193 return pIDB->ShowDW(bShow);
194 }

Member Data Documentation

◆ m_hWndBro

HWND CQuickLaunchBand::m_hWndBro
private

Definition at line 27 of file CQuickLaunchBand.h.

Referenced by FinalConstruct().

◆ m_punkISFB


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