1
0

curtain.h 911 B

123456789101112131415161718192021222324
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_CURTAIN_CONTROL_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_CURTAIN_CONTROL_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. #define NWC_ONLINEMEDIACURTAIN L"Nullsoft_omBrowserCurtain"
  8. BOOL Curtain_RegisterClass(HINSTANCE hInstance);
  9. #define CWM_FIRST (WM_USER + 20)
  10. #define CWM_SETOPERATIONTEXT (CWM_FIRST + 0) //wParam = not used, lParam = (LPARAM)(LPCWSTR)pszOperationText.
  11. #define Curtain_SetOperationText(/*HWND*/ __hCurtain, /*LPCWSTR*/__operationText)\
  12. ((BOOL)SENDMSG(__hCurtain, CWM_SETOPERATIONTEXT, 0, (LPARAM)(__operationText)))
  13. #define CWM_UPDATESKIN (CWM_FIRST + 1) //wParam = not used, lParam = (LPARAM)(BOOL)fRedraw.
  14. #define Curtain_UpdateSkin(/*HWND*/ __hCurtain, /*BOOL*/ __fRedraw)\
  15. (SENDMSG(__hCurtain, CWM_UPDATESKIN, 0, (LPARAM)(__fRedraw)))
  16. #endif //NULLSOFT_WINAMP_OMBROWSER_CURTAIN_CONTROL_HEADER