source: trunk/include/win/winproc.h@ 4

Last change on this file since 4 was 4, checked in by ktk, 26 years ago

Import

File size: 2.9 KB
Line 
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
14typedef enum
15{
16 WIN_PROC_INVALID,
17 WIN_PROC_16,
18 WIN_PROC_32A,
19 WIN_PROC_32W
20} WINDOWPROCTYPE;
21
22typedef enum
23{
24 WIN_PROC_CLASS,
25 WIN_PROC_WINDOW,
26 WIN_PROC_TIMER
27} WINDOWPROCUSER;
28
29typedef void *HWINDOWPROC; /* Really a pointer to a WINDOWPROC */
30
31typedef struct
32{
33 WPARAM16 wParam;
34 LPARAM lParam;
35 LRESULT lResult;
36} MSGPARAM16;
37
38typedef struct
39{
40 WPARAM wParam;
41 LPARAM lParam;
42 LRESULT lResult;
43} MSGPARAM;
44
45extern BOOL WINPROC_Init(void);
46extern WNDPROC16 WINPROC_GetProc( HWINDOWPROC proc, WINDOWPROCTYPE type );
47extern BOOL WINPROC_SetProc( HWINDOWPROC *pFirst, WNDPROC16 func,
48 WINDOWPROCTYPE type, WINDOWPROCUSER user );
49extern void WINPROC_FreeProc( HWINDOWPROC proc, WINDOWPROCUSER user );
50extern WINDOWPROCTYPE WINPROC_GetProcType( HWINDOWPROC proc );
51
52extern INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam,
53 LPARAM *plparam );
54extern INT WINPROC_MapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM wParam,
55 LPARAM *plparam );
56extern INT WINPROC_MapMsg16To32A( UINT16 msg16, WPARAM16 wParam16,
57 UINT *pmsg32, WPARAM *pwparam32,
58 LPARAM *plparam );
59extern INT WINPROC_MapMsg16To32W( HWND16, UINT16 msg16, WPARAM16 wParam16,
60 UINT *pmsg32, WPARAM *pwparam32,
61 LPARAM *plparam );
62extern INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32,
63 WPARAM wParam32, UINT16 *pmsg16,
64 WPARAM16 *pwparam16, LPARAM *plparam );
65extern INT WINPROC_MapMsg32WTo16( HWND hwnd, UINT msg32,
66 WPARAM wParam32, UINT16 *pmsg16,
67 WPARAM16 *pwparam16, LPARAM *plparam );
68extern void WINPROC_UnmapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam,
69 LPARAM lParam );
70extern void WINPROC_UnmapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM wParam,
71 LPARAM lParam );
72extern LRESULT WINPROC_UnmapMsg16To32A( HWND16 hwnd, UINT msg, WPARAM wParam,
73 LPARAM lParam, LRESULT result );
74extern LRESULT WINPROC_UnmapMsg16To32W( HWND16 hwnd, UINT msg, WPARAM wParam,
75 LPARAM lParam, LRESULT result );
76extern void WINPROC_UnmapMsg32ATo16( HWND hwnd, UINT msg, WPARAM wParam,
77 LPARAM lParam, MSGPARAM16* pm16 );
78extern void WINPROC_UnmapMsg32WTo16( HWND hwnd, UINT msg, WPARAM wParam,
79 LPARAM lParam, MSGPARAM16* pm16 );
80#endif /* __WINE_WINPROC_H */
Note: See TracBrowser for help on using the repository browser.