1 | /* $Id: winproc.h,v 1.1 1999-05-24 20:19:22 ktk Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Window procedure callbacks definitions
|
---|
5 | *
|
---|
6 | * Copyright 1996 Alexandre Julliard
|
---|
7 | */
|
---|
8 |
|
---|
9 | #ifndef __WINE_WINPROC_H
|
---|
10 | #define __WINE_WINPROC_H
|
---|
11 |
|
---|
12 | #include "windef.h"
|
---|
13 |
|
---|
14 | typedef enum
|
---|
15 | {
|
---|
16 | WIN_PROC_INVALID,
|
---|
17 | WIN_PROC_16,
|
---|
18 | WIN_PROC_32A,
|
---|
19 | WIN_PROC_32W
|
---|
20 | } WINDOWPROCTYPE;
|
---|
21 |
|
---|
22 | typedef enum
|
---|
23 | {
|
---|
24 | WIN_PROC_CLASS,
|
---|
25 | WIN_PROC_WINDOW,
|
---|
26 | WIN_PROC_TIMER
|
---|
27 | } WINDOWPROCUSER;
|
---|
28 |
|
---|
29 | typedef void *HWINDOWPROC; /* Really a pointer to a WINDOWPROC */
|
---|
30 |
|
---|
31 | typedef struct
|
---|
32 | {
|
---|
33 | WPARAM16 wParam;
|
---|
34 | LPARAM lParam;
|
---|
35 | LRESULT lResult;
|
---|
36 | } MSGPARAM16;
|
---|
37 |
|
---|
38 | typedef struct
|
---|
39 | {
|
---|
40 | WPARAM wParam;
|
---|
41 | LPARAM lParam;
|
---|
42 | LRESULT lResult;
|
---|
43 | } MSGPARAM;
|
---|
44 |
|
---|
45 | extern BOOL WINPROC_Init(void);
|
---|
46 | extern WNDPROC16 WINPROC_GetProc( HWINDOWPROC proc, WINDOWPROCTYPE type );
|
---|
47 | extern BOOL WINPROC_SetProc( HWINDOWPROC *pFirst, WNDPROC16 func,
|
---|
48 | WINDOWPROCTYPE type, WINDOWPROCUSER user );
|
---|
49 | extern void WINPROC_FreeProc( HWINDOWPROC proc, WINDOWPROCUSER user );
|
---|
50 | extern WINDOWPROCTYPE WINPROC_GetProcType( HWINDOWPROC proc );
|
---|
51 |
|
---|
52 | extern INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam,
|
---|
53 | LPARAM *plparam );
|
---|
54 | extern INT WINPROC_MapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM wParam,
|
---|
55 | LPARAM *plparam );
|
---|
56 | extern INT WINPROC_MapMsg16To32A( UINT16 msg16, WPARAM16 wParam16,
|
---|
57 | UINT *pmsg32, WPARAM *pwparam32,
|
---|
58 | LPARAM *plparam );
|
---|
59 | extern INT WINPROC_MapMsg16To32W( HWND16, UINT16 msg16, WPARAM16 wParam16,
|
---|
60 | UINT *pmsg32, WPARAM *pwparam32,
|
---|
61 | LPARAM *plparam );
|
---|
62 | extern INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32,
|
---|
63 | WPARAM wParam32, UINT16 *pmsg16,
|
---|
64 | WPARAM16 *pwparam16, LPARAM *plparam );
|
---|
65 | extern INT WINPROC_MapMsg32WTo16( HWND hwnd, UINT msg32,
|
---|
66 | WPARAM wParam32, UINT16 *pmsg16,
|
---|
67 | WPARAM16 *pwparam16, LPARAM *plparam );
|
---|
68 | extern void WINPROC_UnmapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam,
|
---|
69 | LPARAM lParam );
|
---|
70 | extern void WINPROC_UnmapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM wParam,
|
---|
71 | LPARAM lParam );
|
---|
72 | extern LRESULT WINPROC_UnmapMsg16To32A( HWND16 hwnd, UINT msg, WPARAM wParam,
|
---|
73 | LPARAM lParam, LRESULT result );
|
---|
74 | extern LRESULT WINPROC_UnmapMsg16To32W( HWND16 hwnd, UINT msg, WPARAM wParam,
|
---|
75 | LPARAM lParam, LRESULT result );
|
---|
76 | extern void WINPROC_UnmapMsg32ATo16( HWND hwnd, UINT msg, WPARAM wParam,
|
---|
77 | LPARAM lParam, MSGPARAM16* pm16 );
|
---|
78 | extern void WINPROC_UnmapMsg32WTo16( HWND hwnd, UINT msg, WPARAM wParam,
|
---|
79 | LPARAM lParam, MSGPARAM16* pm16 );
|
---|
80 | #endif /* __WINE_WINPROC_H */
|
---|