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.

55 lines
1.6 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. CChannelDeskBarApp();
  31. ~CChannelDeskBarApp();
  32. BOOL _OnCloseBar(BOOL fConfirm);
  33. HWND _hwndTB;
  34. HWND _hwndDummy; // for propagating WM_PALETTE* messages
  35. LONG _cxScreen, _cyScreen; // the screen resolution
  36. friend HRESULT ChannelDeskBarApp_Create(IUnknown** ppunk, IUnknown** ppbs);
  37. } ;
  38. HRESULT ChannelDeskBarApp_Create(IUnknown** ppunk, IUnknown** ppbs);
  39. void ChanBarSetAutoLaunchRegValue(BOOL);
  40. void DesktopChannel();
  41. #endif // _CHANBAR_H