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.

35 lines
842 B

  1. #ifndef _FADETSK_H
  2. #define _FADETSK_H
  3. class CFadeTask : public IFadeTask
  4. {
  5. public:
  6. // *** IUnknown ***
  7. STDMETHODIMP QueryInterface(REFIID riid, void **ppv);
  8. STDMETHODIMP_(ULONG) AddRef(void);
  9. STDMETHODIMP_(ULONG) Release(void);
  10. // *** IFadeTask ***
  11. STDMETHODIMP FadeRect(LPCRECT prc);
  12. private:
  13. friend HRESULT CFadeTask_CreateInstance(IUnknown *punkOuter, REFIID riid, void **ppv);
  14. CFadeTask();
  15. ~CFadeTask();
  16. void _DoPreFade();
  17. void _DoFade();
  18. void _StopFade();
  19. static DWORD WINAPI s_FadeThreadProc(LPVOID lpThreadParameter);
  20. static DWORD WINAPI s_FadeSyncProc(LPVOID lpThreadParameter);
  21. LONG _cRef;
  22. HWND _hwndFader;
  23. RECT _rect;
  24. HDC _hdcFade;
  25. HBITMAP _hbm;
  26. HBITMAP _hbmOld;
  27. };
  28. #endif