1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef NULLSOFT_WINAMP_OMBROWSER_STATUSBAR_HEADER
- #define NULLSOFT_WINAMP_OMBROWSER_STATUSBAR_HEADER
- #if defined(_MSC_VER) && (_MSC_VER >= 1020)
- #pragma once
- #endif
- #include <wtypes.h>
- #define NWC_ONLINEMEDIASTATUSBAR L"Nullsoft_omBrowserStatusbar"
- BOOL Statusbar_RegisterClass(HINSTANCE hInstance)
- #define SBS_UPDATELAYOUT 0x00000001
- #define SBS_ACTIVE 0x00000002
- #define SBM_FIRST (WM_USER + 10)
- #define SBM_UPDATESKIN (SBM_FIRST + 0)
- #define Statusbar_UpdateSkin( __hStatusbar, __fRedraw)\
- ((BOOL)SENDMSG(__hStatusbar, SBM_UPDATESKIN, 0, (LPARAM)(__fRedraw)))
- #define SBM_SETPARENTRECT (SBM_FIRST + 1)
- #define Statusbar_SetParentRect( __hStatusbar, __parentRect)\
- ((BOOL)SENDMSG(__hStatusbar, SBM_SETPARENTRECT, 0, (LPARAM)(__parentRect)))
- #define SBM_SETACTIVE (SBM_FIRST + 2)
- #define Statusbar_SetActive( __hStatusbar, __fActive)\
- ((BOOL)SENDMSG(__hStatusbar, SBM_SETACTIVE, (WPARAM)(__fActive), 0L))
- #define SBM_UPDATE (SBM_FIRST + 3)
- #define Statusbar_Update( __hStatusbar, __pszText)\
- ((BOOL)SENDMSG(__hStatusbar, SBM_UPDATE, 0, (LPARAM)(__pszText)))
- #define SBM_SETBROWSERHOST (SBM_FIRST + 4)
- #define Statusbar_SetBrowserHost( __hStatusbar, __hwndBrowserHost)\
- ((BOOL)SENDMSG(__hStatusbar, SBM_SETBROWSERHOST, 0, (LPARAM)(__hwndBrowserHost)))
- #define SBM_ENABLE (SBM_FIRST + 5)
- #define Statusbar_Enable( __hStatusbar, __fEnable)\
- ((BOOL)SENDMSG(__hStatusbar, SBM_ENABLE, 0, (LPARAM)(__fEnable)))
- #define SBN_ENABLECHANGED 1
- #endif
|