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.

34 lines
778 B

  1. #ifndef _FADETSK_H
  2. #define _FADETSK_H
  3. #include <runtask.h>
  4. extern const GUID TASKID_Fader;
  5. #define FADE_BEGIN 0x00000001
  6. #define FADE_END 0x00000002
  7. typedef void (*PFNFADESCREENRECT)(DWORD dwFadeState, LPVOID pvParam); // Called after the Fade has begun
  8. class CFadeTask : public CRunnableTask
  9. {
  10. public:
  11. // IRunnableTask methods (override)
  12. virtual STDMETHODIMP RunInitRT(void);
  13. CFadeTask();
  14. void _StopFade();
  15. BOOL FadeRect(PRECT prc, PFNFADESCREENRECT pfn, LPVOID pvParam);
  16. private:
  17. virtual ~CFadeTask();
  18. HWND _hwndFader;
  19. RECT _rect;
  20. PFNFADESCREENRECT _pfn;
  21. LPVOID _pvParam;
  22. HDC _hdcFade;
  23. HBITMAP _hbm;
  24. HBITMAP _hbmOld;
  25. };
  26. #endif