1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef NULLOSFT_MEDIALIBRARY_REFLECTED_MESSAGES_HEADER
- #define NULLOSFT_MEDIALIBRARY_REFLECTED_MESSAGES_HEADER
- #if defined(_MSC_VER) && (_MSC_VER >= 1020)
- #pragma once
- #endif
- #include <windows.h>
- typedef struct _REFLECTPARAM
- {
- LRESULT result;
- LPARAM lParam;
- HWND hwndFrom;
- }REFLECTPARAM, *PREFLECTPARAM;
- #define REFLECT_BASE (WM_APP + 0x3000)
- #define WM_SUPPORTREFLECT (REFLECT_BASE + 0x0000)
- #define REFLECTED_DRAWITEM (REFLECT_BASE + WM_DRAWITEM)
- #define REFLECTED_CTLCOLORBTN (REFLECT_BASE + WM_CTLCOLORBTN)
- #define REFLECTED_CTLCOLOREDIT (REFLECT_BASE + WM_CTLCOLOREDIT)
- #define REFLECTED_CTLCOLORLISTBOX (REFLECT_BASE + WM_CTLCOLORLISTBOX)
- #define REFLECTED_CTLCOLORSCROLLBAR (REFLECT_BASE + WM_CTLCOLORSCROLLBAR)
- #define REFLECTED_CTLCOLORSTATIC (REFLECT_BASE + WM_CTLCOLORSTATIC)
- #define REFLECTED_NOTIFY (REFLECT_BASE + WM_NOTIFY)
- #define REFLECTED_COMMAND (REFLECT_BASE + WM_COMMAND)
- #define REFLECTED_MEASUREITEM (REFLECT_BASE + WM_MEASUREITEM)
- #ifdef __cplusplus
- #define REFLECTMESSAGE(hwnd, uMsg, wParam, lParam) (BOOL)::SendMessage((hwnd), (REFLECT_BASE + (uMsg)), (wParam), (lParam))
- #else
- #define REFLECTMESSAGE(hwnd, uMsg, wParam, lParam) (BOOL)SendMessage((hwnd), (REFLECT_BASE + (uMsg)), (wParam), (lParam))
- #endif
- BOOL CanReflect(UINT uMsg);
- BOOL ReflectMessage(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL bDialog, LRESULT *pResult);
- HRESULT InstallReflector(HWND hwnd);
-
- BOOL RemoveReflector(HWND hwnd);
- #endif
|