/**************/ /* checker.h */ /**************/ #ifndef CHECKER_H #define CHECKER_H #ifdef __cplusplus extern "C" { #endif int CheckMessage(void); void CheckDelayMessages(HWND hwnd); #ifndef __WIN32__ void WINAPI CheckEndPaint(HWND hWnd, const PAINTSTRUCT FAR *ps); #else BOOL WINAPI CheckEndPaint(HWND hWnd, const PAINTSTRUCT FAR *ps); #endif int IsCheckingMessage(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam); #ifdef __cplusplus } #endif #define CHECK_CHECKER_WIN(hWnd,message,wParam,lParam) \ switch ( IsCheckingMessage(hWnd,message,wParam,lParam) ) { \ case 1: return NULL; \ case -1: return DefWindowProc(hWnd, message, wParam, lParam); \ } #define CHECK_CHECKER_DIALOG(hWnd,message,wParam,lParam) \ switch ( IsCheckingMessage(hWnd,message,wParam,lParam) ) { \ case 1: return TRUE; \ case -1: return FALSE; \ } #endif