
Wed Jun 5 20:13:54 1996 Alexandre Julliard <julliard@lrc.epfl.ch> * [controls/button.c] [controls/listbox.c] Fixed wParam of WM_DRAWITEM message. * [if1632/Makefile.in] [loader/builtin.c] Remove WPROCS32 DLL, as the relay code can call Wine routines directly. * [loader/module.c] [loader/ne_image.c] Fixed initial stack layout for self-loading modules. * [tools/build.c] Fixed data segment building for Win16 modules. * [windows/defdlg.c] Implemented Win32 versions of DefDlgProc(). * [windows/dialog.c] Merged Win16 and Win32 dialog code. Added support for control extra data in dialog item template. * [windows/win.c] Unified Win16 and Win32 versions of CreateWindow(). Implemented Win32 version of GetWindowLong(). * [windows/winproc.c] Changed the implementation of window procedures, so that 16-bit winprocs are valid segmented pointers. Sun Jun 2 16:39:46 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de> * [misc/registry.c] Fixed another bug in the w95 loader. Quietened some debug output. Sun Jun 2 10:00:22 1996 Ulrich Schmid <uschmid@mail.hh.provi.de> * [windows/winproc.c] Bug fix: WM_PARENTNOTIFY: don't fall through to WM_SETTEXT. Sat Jun 1 12:37:22 1996 Tristan Tarrant <tst@sthinc.demon.co.uk> * [resources/TODO] [resources/sysres_It.rc] Updated font dialog box. Thu May 30 21:05:19 1996 Albrecht Kleine <kleine@ak.sax.de> * [include/commdlg.h] [misc/commdlg.c] ChooseFont() and ChooseColor(): Bugfixes and added more support for some CF_* and CC_* flags: dialog templates and font size control. Bugfix in structure definition of CHOOSECOLOR definition. * [ipc/dde_proc.c] [windows/event.c] Replaced SendMessage with SendMessage16 and added inclusion of dde_proc.h for error-free compilation of ipc module. Thu May 30 19:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu> * [windows/scroll.c] Made ScrollDC to save/restore current clipping region. * [misc/clipboard.c] [windows/event.c] Implemented most of the previously missing features (not tested), improved text pasting from/to X. * [if1632/user.spec] [if1632/gdi.spec] [objects/dc.c] [objects/gdiobj.c] [objects/clipping.c] [windows/dce.c] [windows/winpos.c] [windows/painting.c] Updated DCE code, implemented dynamic invalidation of owned DCs. This fixes a lot of problems with scrolling in WinWord. Not sure about the effect on -desktop. Wed May 29 23:35:44 1996 Jukka Iivonen <iivonen@cc.helsinki.fi> * [win32/time.c] [if1632/kernel32.spec] Added SetSystemTime and SetTimeZoneInformation. * [if1632/kernel32.spec] Added lstrcat, lstrcatA, lstrcmp, lstrcmpA, lstrcpy, lstrlen. * [include/windows.h] Added SYSTEM_POWER_STATUS structure and prototypes for GetSystemPowerStatus, SetSystemPowerState, SetSystemTime. * [include/kernel32.h] Added a prototype for SetTimeZoneInformation. * [win32/environment.c] [if1632/kernel32.spec] Added GetSystemPowerStatus and SetSystemPowerState stubs.
110 lines
4.1 KiB
C
110 lines
4.1 KiB
C
/*
|
|
* JBP (Jim Peterson <jspeter@birch.ee.vt.edu>): Lots of stubs needed for
|
|
* libwine.a.
|
|
*/
|
|
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "dde_mem.h"
|
|
#include "windows.h"
|
|
#include "global.h"
|
|
#include "debug.h"
|
|
#include "xmalloc.h"
|
|
|
|
int CallTo32_LargeStack( int (*func)(), int nbargs, ...)
|
|
{
|
|
va_list arglist;
|
|
int i,a[32];
|
|
|
|
va_start(arglist,nbargs);
|
|
|
|
for(i=0; i<nbargs; i++) a[i]=va_arg(arglist,int);
|
|
|
|
switch(nbargs) /* Ewww... Icky. But what can I do? */
|
|
{
|
|
case 5: return func(a[0],a[1],a[2],a[3],a[4]);
|
|
case 6: return func(a[0],a[1],a[2],a[3],a[4],a[5]);
|
|
case 8: return func(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]);
|
|
case 10: return func(a[0],a[1],a[2],a[3],a[4],a[5],a[6],
|
|
a[7],a[8],a[9]);
|
|
case 11: return func(a[0],a[1],a[2],a[3],a[4],a[5],a[6],
|
|
a[7],a[8],a[9],a[10]);
|
|
case 14: return func(a[0],a[1],a[2],a[3],a[4],a[5],a[6],
|
|
a[7],a[8],a[9],a[10],a[11],a[12],a[13]);
|
|
case 17: return func(a[0],a[1],a[2],a[3],a[4],a[5],a[6],
|
|
a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16]);
|
|
default: fprintf(stderr,"JBP: CallTo32_LargeStack called with unsupported "
|
|
"number of arguments (%d). Ignored.\n",nbargs);
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
WORD CallTo16_word_ ( FARPROC func, WORD arg ) { return func(arg); }
|
|
|
|
extern LRESULT ACTIVATEAPP_callback(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT AboutDlgProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT CARET_Callback(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT ColorDlgProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT ComboBoxWndProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT ComboLBoxWndProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT EditWndProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT FileOpenDlgProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT FileSaveDlgProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT FindTextDlgProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT ListBoxWndProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT MDIClientWndProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT PopupMenuWndProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT PrintDlgProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT PrintSetupDlgProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT ReplaceTextDlgProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT ScrollBarWndProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT StaticWndProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT SystemMessageBoxProc(HWND,UINT,WPARAM,LPARAM);
|
|
extern LRESULT TASK_Reschedule(HWND,UINT,WPARAM,LPARAM);
|
|
|
|
LRESULT ErrorProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
|
|
{
|
|
fprintf(stderr,"ERROR: ErrorProc() called!\n");
|
|
return 0;
|
|
}
|
|
|
|
/***********************************************************************
|
|
* MODULE_GetWndProcEntry16 (not a Windows API function)
|
|
*
|
|
* Return an entry point from the WPROCS dll.
|
|
*/
|
|
WNDPROC MODULE_GetWndProcEntry16( char *name )
|
|
{
|
|
#define MAP_STR_TO_PROC(str,proc) if(!strcmp(name,str))return proc
|
|
MAP_STR_TO_PROC("ActivateAppProc",ACTIVATEAPP_callback);
|
|
MAP_STR_TO_PROC("AboutDlgProc",AboutDlgProc);
|
|
MAP_STR_TO_PROC("CARET_Callback",CARET_Callback);
|
|
MAP_STR_TO_PROC("ColorDlgProc",ColorDlgProc);
|
|
MAP_STR_TO_PROC("ComboBoxWndProc",ComboBoxWndProc);
|
|
MAP_STR_TO_PROC("ComboLBoxWndProc",ComboLBoxWndProc);
|
|
MAP_STR_TO_PROC("DefDlgProc",DefDlgProc);
|
|
MAP_STR_TO_PROC("EditWndProc",EditWndProc);
|
|
MAP_STR_TO_PROC("FileOpenDlgProc",FileOpenDlgProc);
|
|
MAP_STR_TO_PROC("FileSaveDlgProc",FileSaveDlgProc);
|
|
MAP_STR_TO_PROC("FindTextDlgProc",FindTextDlgProc);
|
|
MAP_STR_TO_PROC("ListBoxWndProc",ListBoxWndProc);
|
|
MAP_STR_TO_PROC("MDIClientWndProc",MDIClientWndProc);
|
|
MAP_STR_TO_PROC("PopupMenuWndProc",PopupMenuWndProc);
|
|
MAP_STR_TO_PROC("PrintDlgProc",PrintDlgProc);
|
|
MAP_STR_TO_PROC("PrintSetupDlgProc",PrintSetupDlgProc);
|
|
MAP_STR_TO_PROC("ReplaceTextDlgProc",ReplaceTextDlgProc);
|
|
MAP_STR_TO_PROC("ScrollBarWndProc",ScrollBarWndProc);
|
|
MAP_STR_TO_PROC("StaticWndProc",StaticWndProc);
|
|
MAP_STR_TO_PROC("SystemMessageBoxProc",SystemMessageBoxProc);
|
|
MAP_STR_TO_PROC("TASK_Reschedule",TASK_Reschedule);
|
|
fprintf(stderr,"warning: No mapping for %s(), add one in library/miscstubs.c\n",name);
|
|
return ErrorProc;
|
|
}
|
|
|
|
void DEBUG_EnterDebugger(void)
|
|
{
|
|
}
|
|
|