Thu Jul 14 17:50:45 1994 Bob Amstadt (bob@pooh) * [Configure] Autodetects Linux version (if running Linux). * [loader/signal.c] New signals for Linux. * [loader/ldtlib.c] New structure field in sys call. Sun Jul 10 19:31:34 1994 Olaf Flebbe (olaf@dragon) * [load/resource.c] fixed Memory (Resource) Leak. * [load/main.c] fixed a printf. Tue Jul 12 18:50:34 1994 Alexandre Julliard (julliard@lamisun.epfl.ch) * [controls/desktop.c] Implemented desktop wallpaper (only 16 colors for now). * [controls/menu.c] [windows/nonclient.c] Preliminary work to allow multi-line menus. * [misc/main.c] No backing store on desktop window (not useful). * [objects/text.c] A few fixes to DrawText() to make underlines under mnemonic letters to look better. * [windows/graphics.c] More fixes to GRAPH_DrawArc(), and some fixes to Polygon(). Implemented PolyPolygon() (partially working). * [windows/winpos.c] New function WINPOS_SendNCCalcSize(). Cleaned up SetWindowPos() and added preliminary support for multi-line menus. Mon Jul 11 19:15:51 1994 Miguel de Icaza (miguel@sphinx) * [controls/edit.c] Changes to work as a library. * [if1632/callback.c] Ifdefed module. * [if1632/relay.c] Changes to allow linking with WineLib. * [include/windows.h] Added macro WINELIB_UNIMP * [loader/library.c] When compiling WineLib, GetProcAddress is not implemented yet. * [loader/main.c] Added empty InitDLL when using WineLib. * [loader/ne_image.c] Some parts of the loader are needed for WineLib, ifdefed correctly * [misc/{audio.c,mcicda.c,mmaux.c,mmsystem.c] Disable compilation of module when compiling WineLib. * [toolkit/heap.c] Fixed small bug. When passed an invalid handle WineLib would crash, now return NULL. * [toolkit/winmain.c] Call CreateNewTask in _WinMain. Sun Jul 10 09:08:02 1994 David Metcalfe <david@prism.demon.co.uk> * [controls/edit.c] [controls/widget.c] More changes to improve compatibility with Windows' edit control. Finished off tab stop support. Mon Jul 11 21:05:02 MET DST 1994 Erik Bos <erik@hacktic.nl> * [if1632/relay.c] # of ordinals in shell.dll changed to 103. * [loader/signal.c] sti, cli will now be ignored. * [objects/brush.c] Added stub for GetSysColorBrush().
66 lines
2.4 KiB
C
66 lines
2.4 KiB
C
/*
|
|
* Windows widgets (built-in window classes)
|
|
*
|
|
* Copyright 1993 Alexandre Julliard
|
|
*/
|
|
|
|
static char Copyright[] = "Copyright Alexandre Julliard, 1993";
|
|
|
|
#include "win.h"
|
|
#include "desktop.h"
|
|
#include "mdi.h"
|
|
#include "gdi.h"
|
|
|
|
LONG ButtonWndProc( HWND hwnd, WORD message, WORD wParam, LONG lParam );
|
|
LONG StaticWndProc( HWND hwnd, WORD message, WORD wParam, LONG lParam );
|
|
LONG ScrollBarWndProc( HWND hwnd, WORD message, WORD wParam, LONG lParam );
|
|
LONG ListBoxWndProc ( HWND hwnd, WORD message, WORD wParam, LONG lParam );
|
|
LONG ComboBoxWndProc ( HWND hwnd, WORD message, WORD wParam, LONG lParam );
|
|
LONG EditWndProc( HWND hwnd, WORD message, WORD wParam, LONG lParam );
|
|
LONG PopupMenuWndProc ( HWND hwnd, WORD message, WORD wParam, LONG lParam );
|
|
LONG DesktopWndProc ( HWND hwnd, WORD message, WORD wParam, LONG lParam );
|
|
LONG MDIClientWndProc ( HWND hwnd, WORD message, WORD wParam, LONG lParam );
|
|
|
|
|
|
static WNDCLASS WIDGETS_BuiltinClasses[] =
|
|
{
|
|
{ CS_GLOBALCLASS, (LONG(*)())ButtonWndProc, 0, 2,
|
|
0, 0, 0, 0, NULL, "BUTTON" },
|
|
{ CS_GLOBALCLASS, (LONG(*)())StaticWndProc, 0, 0,
|
|
0, 0, 0, 0, NULL, "STATIC" },
|
|
{ CS_GLOBALCLASS, (LONG(*)())ScrollBarWndProc, 0, 8,
|
|
0, 0, 0, 0, NULL, "SCROLLBAR" },
|
|
{ CS_GLOBALCLASS, (LONG(*)())ListBoxWndProc, 0, 8,
|
|
0, 0, 0, 0, NULL, "LISTBOX" },
|
|
{ CS_GLOBALCLASS, (LONG(*)())ComboBoxWndProc, 0, 8,
|
|
0, 0, 0, 0, NULL, "COMBOBOX" },
|
|
{ CS_GLOBALCLASS, (LONG(*)())EditWndProc, 0, 4,
|
|
0, 0, 0, 0, NULL, "EDIT" },
|
|
{ CS_GLOBALCLASS | CS_SAVEBITS, (LONG(*)())PopupMenuWndProc, 0, 8,
|
|
0, 0, 0, 0, NULL, "POPUPMENU" },
|
|
{ CS_GLOBALCLASS, (LONG(*)())DesktopWndProc, 0, sizeof(DESKTOPINFO),
|
|
0, 0, 0, 0, NULL, DESKTOP_CLASS_NAME },
|
|
{ CS_GLOBALCLASS, (LONG(*)())DefDlgProc, 0, DLGWINDOWEXTRA,
|
|
0, 0, 0, 0, NULL, DIALOG_CLASS_NAME },
|
|
{ CS_GLOBALCLASS, (LONG(*)())MDIClientWndProc, 0, sizeof(MDICLIENTINFO),
|
|
0, 0, 0, STOCK_LTGRAY_BRUSH, NULL, "MDICLIENT" }
|
|
};
|
|
|
|
#define NB_BUILTIN_CLASSES \
|
|
(sizeof(WIDGETS_BuiltinClasses)/sizeof(WIDGETS_BuiltinClasses[0]))
|
|
|
|
|
|
/***********************************************************************
|
|
* WIDGETS_Init
|
|
*
|
|
* Initialize the built-in window classes.
|
|
*/
|
|
BOOL WIDGETS_Init(void)
|
|
{
|
|
int i;
|
|
for (i = 0; i < NB_BUILTIN_CLASSES; i++)
|
|
{
|
|
if (!RegisterClass(&WIDGETS_BuiltinClasses[i])) return FALSE;
|
|
}
|
|
return TRUE;
|
|
}
|