Source code of Windows XP (NT5)
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.

52 lines
1.5 KiB

  1. #ifndef _CHANBAR_H
  2. #define _CHANBAR_H
  3. #include "dbapp.h"
  4. #define SZ_REGKEY_CHANBAR TEXT("Software\\Microsoft\\Internet Explorer\\Channels")
  5. #define SZ_REGVALUE_CHANBAR TEXT("window_placement")
  6. typedef struct tagCISSTRUCT {
  7. UINT iVer;
  8. RECT rc;
  9. } CISSTRUCT;
  10. class CChannelDeskBarApp : public CDeskBarApp
  11. {
  12. public:
  13. virtual STDMETHODIMP ShowDW(BOOL fShow);
  14. virtual STDMETHODIMP CloseDW(DWORD dwReserved);
  15. // *** IPersistPropertyBag ***
  16. virtual HRESULT STDMETHODCALLTYPE Load(IPropertyBag *pPropBag,
  17. IErrorLog *pErrorLog);
  18. protected:
  19. virtual LRESULT v_WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  20. static LRESULT CALLBACK DummyWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  21. virtual LRESULT _OnCommand(UINT msg, WPARAM wparam, LPARAM lparam);
  22. virtual void _OnDisplayChange();
  23. virtual void _OnCreate();
  24. virtual void _OnSize(void);
  25. virtual void _UpdateCaptionTitle();
  26. void _CreateToolbar();
  27. void _PositionTB();
  28. void _SizeTB();
  29. void _PersistState();
  30. BOOL _OnCloseBar(BOOL fConfirm);
  31. HWND _hwndTB;
  32. HWND _hwndDummy; // for propagating WM_PALETTE* messages
  33. LONG _cxScreen, _cyScreen; // the screen resolution
  34. friend HRESULT ChannelDeskBarApp_Create(IUnknown** ppunk, IUnknown** ppbs);
  35. } ;
  36. HRESULT ChannelDeskBarApp_Create(IUnknown** ppunk, IUnknown** ppbs);
  37. void ChanBarSetAutoLaunchRegValue(BOOL);
  38. void DesktopChannel();
  39. #endif // _CHANBAR_H