1996-05-21 17:01:41 +02:00
|
|
|
/*
|
|
|
|
* Window procedure callbacks definitions
|
|
|
|
*
|
|
|
|
* Copyright 1996 Alexandre Julliard
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1996-05-21 17:01:41 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINPROC_H
|
|
|
|
#define __WINE_WINPROC_H
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
2001-12-26 20:55:35 +01:00
|
|
|
#include "wine/winbase16.h"
|
2002-12-04 00:34:52 +01:00
|
|
|
|
2006-05-18 18:05:01 +02:00
|
|
|
typedef LRESULT (*winproc_callback_t)( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp,
|
|
|
|
LRESULT *result, void *arg );
|
2006-05-18 19:44:30 +02:00
|
|
|
typedef LRESULT (*winproc_callback16_t)( HWND16 hwnd, UINT16 msg, WPARAM16 wp, LPARAM lp,
|
|
|
|
LRESULT *result, void *arg );
|
2006-05-18 18:05:01 +02:00
|
|
|
|
2006-05-10 16:55:55 +02:00
|
|
|
extern WNDPROC16 WINPROC_GetProc16( WNDPROC proc, BOOL unicode );
|
2006-05-09 19:55:05 +02:00
|
|
|
extern WNDPROC WINPROC_AllocProc16( WNDPROC16 func );
|
2006-05-10 13:20:34 +02:00
|
|
|
extern WNDPROC WINPROC_GetProc( WNDPROC proc, BOOL unicode );
|
2006-05-17 13:55:36 +02:00
|
|
|
extern WNDPROC WINPROC_AllocProc( WNDPROC funcA, WNDPROC funcW );
|
2006-05-10 13:27:21 +02:00
|
|
|
extern BOOL WINPROC_IsUnicode( WNDPROC proc, BOOL def_val );
|
1996-05-21 17:01:41 +02:00
|
|
|
|
2006-05-18 19:47:40 +02:00
|
|
|
extern LRESULT WINPROC_CallProcAtoW( winproc_callback_t callback, HWND hwnd, UINT msg,
|
|
|
|
WPARAM wParam, LPARAM lParam, LRESULT *result, void *arg );
|
2006-05-20 16:32:45 +02:00
|
|
|
extern LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT16 msg,
|
|
|
|
WPARAM16 wParam, LPARAM lParam, LRESULT *result, void *arg );
|
2006-05-20 16:34:14 +02:00
|
|
|
extern LRESULT WINPROC_CallProc32ATo16( winproc_callback16_t callback, HWND hwnd, UINT msg,
|
|
|
|
WPARAM wParam, LPARAM lParam, LRESULT *result, void *arg );
|
2006-05-18 19:47:40 +02:00
|
|
|
|
2006-05-09 20:33:11 +02:00
|
|
|
extern INT_PTR WINPROC_CallDlgProc16( DLGPROC16 func, HWND16 hwnd, UINT16 msg, WPARAM16 wParam, LPARAM lParam );
|
|
|
|
extern INT_PTR WINPROC_CallDlgProcA( DLGPROC func, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
|
|
|
|
extern INT_PTR WINPROC_CallDlgProcW( DLGPROC func, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
|
|
|
|
|
1996-05-21 17:01:41 +02:00
|
|
|
#endif /* __WINE_WINPROC_H */
|