Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.3 KiB

  1. // coming soon: new deskbar (old deskbar moved to browbar base class)
  2. #ifndef BROWBAR_H_
  3. #define BROWBAR_H_
  4. #include "dockbar.h"
  5. class CBrowserBar : public CDockingBar
  6. {
  7. public:
  8. // *** IPersistStreamInit ***
  9. virtual STDMETHODIMP GetClassID(CLSID *pClassID);
  10. // *** IOleCommandTarget methods ***
  11. virtual STDMETHODIMP Exec(const GUID *pguidCmdGroup,
  12. DWORD nCmdID, DWORD nCmdexecopt,
  13. VARIANTARG *pvarargIn, VARIANTARG *pvarargOut);
  14. protected:
  15. virtual BOOL _CheckForwardWinEvent(UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT* plres);
  16. virtual void _HandleWindowPosChanging(LPWINDOWPOS pwp) ;
  17. virtual void _GetChildPos(LPRECT prc);
  18. virtual void _GetStyleForMode(UINT eMode, LONG* plStyle, LONG *plExStyle, HWND* phwndParent);
  19. virtual LRESULT v_WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  20. void _StopCurrentBand();
  21. CLSID _clsidCurrentBand;
  22. int _idBar; //vertical or horizontal bar
  23. public:
  24. void SetIdBar(int idBar) { _idBar = idBar; };
  25. UINT _PersistState(HWND hwnd, BOOL bSetNewRect);
  26. };
  27. class CBrowserBarPropertyBag : public CDockingBarPropertyBag
  28. {
  29. };
  30. HRESULT BrowserBar_Init(CBrowserBar* pdb, IUnknown** ppbs, int idBar);
  31. #endif