windows-nt/Source/XPSP1/NT/shell/browseui/browbar.h

41 lines
1.2 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
// coming soon: new deskbar (old deskbar moved to browbar base class)
#ifndef BROWBAR_H_
#define BROWBAR_H_
#include "dockbar.h"
class CBrowserBar : public CDockingBar
{
public:
// *** IPersistStreamInit ***
virtual STDMETHODIMP GetClassID(CLSID *pClassID);
// *** IOleCommandTarget methods ***
virtual STDMETHODIMP Exec(const GUID *pguidCmdGroup,
DWORD nCmdID, DWORD nCmdexecopt,
VARIANTARG *pvarargIn, VARIANTARG *pvarargOut);
protected:
virtual BOOL _CheckForwardWinEvent(UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT* plres);
virtual void _HandleWindowPosChanging(LPWINDOWPOS pwp) ;
virtual void _GetChildPos(LPRECT prc);
virtual void _GetStyleForMode(UINT eMode, LONG* plStyle, LONG *plExStyle, HWND* phwndParent);
virtual LRESULT v_WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
void _StopCurrentBand();
CLSID _clsidCurrentBand;
int _idBar; //vertical or horizontal bar
public:
void SetIdBar(int idBar) { _idBar = idBar; };
UINT _PersistState(HWND hwnd, BOOL bSetNewRect);
};
class CBrowserBarPropertyBag : public CDockingBarPropertyBag
{
};
HRESULT BrowserBar_Init(CBrowserBar* pdb, IUnknown** ppbs, int idBar);
#endif