Separated stuff for shv background contextmenu to separate file.
[wine.git] / include / message.h
blob85ed316837ee275d239bc2e32a9b58778e1340be
1 /*
2 * Message definitions
4 * Copyright 1993 Alexandre Julliard
5 */
7 #ifndef __WINE_MESSAGE_H
8 #define __WINE_MESSAGE_H
10 #include "win.h"
11 #include "queue.h"
13 extern DWORD MSG_WineStartTicks; /* Ticks at Wine startup */
15 /* message.c */
16 extern BOOL MSG_InternalGetMessage( MSG *msg, HWND hwnd,
17 HWND hwndOwner, WPARAM code,
18 WORD flags, BOOL sendIdle );
20 /* timer.c */
21 extern BOOL TIMER_Init( void );
22 extern void TIMER_RemoveWindowTimers( HWND hwnd );
23 extern void TIMER_RemoveQueueTimers( HQUEUE16 hqueue );
24 extern BOOL TIMER_GetTimerMsg( MSG *msg, HWND hwnd,
25 HQUEUE16 hQueue, BOOL remove );
27 /* event.c */
28 typedef struct tagEVENT_DRIVER {
29 BOOL (*pInit)(void);
30 void (*pSynchronize)(void);
31 BOOL (*pCheckFocus)(void);
32 BOOL (*pQueryPointer)(DWORD *, DWORD *, DWORD *);
33 void (*pUserRepaintDisable)(BOOL);
34 } EVENT_DRIVER;
36 extern EVENT_DRIVER *EVENT_Driver;
38 extern BOOL EVENT_Init( void );
39 extern void EVENT_Synchronize( void );
40 extern BOOL EVENT_CheckFocus( void );
41 extern BOOL EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state);
43 /* input.c */
45 extern HWND EVENT_Capture( HWND, INT16 );
46 extern BOOL EVENT_QueryPointer( DWORD *posX, DWORD *posY, DWORD *state );
48 extern void joySendMessages(void);
50 #endif /* __WINE_MESSAGE_H */