Separated the MZ loader and core DOS VM into dlls/winedos.
[wine.git] / misc / tweak.c
blob146233a92afd6c3f733326eeffc7025ba7c477bb
1 /******************************************************************************
3 * tweak.c
5 * Windows 95 style interface tweaks.
6 * Copyright (c) 1997 Dave Cuthbert.
8 * FIXME: This file is, unfortunately, aptly named: the method of
9 * displaying Win95 style windows is a tweak. Lots of stuff does not yet
10 * work -- and probably never will unless some of this code is
11 * incorporated into the mainstream Wine code.
13 * DEVELOPERS, PLEASE NOTE: Before delving into the mainstream code and
14 * altering it, consider how your changes will affect the Win3.1 interface
15 * (which has taken a major effort to create!). After you make any sort of
16 * non-trivial change, *test* the Wine code running in Win3.1 mode! The
17 * object here is to make it so that the person who tests the latest version
18 * of Wine without adding the tweaks into wine.conf notices nothing out of
19 * the ordinary.
21 * Revision history
22 * 03-Jul-1997 Dave Cuthbert (dacut@ece.cmu.edu)
23 * Original implementation.
24 * 05-Aug-1998 Eric Kohl (ekohl@abo.rhein-zeitung.de)
25 * Removed some unused code.
26 * 22-Sep-1998 Eric Kohl (ekohl@abo.rhein-zeitung.de)
27 * Removed more unused code.
29 *****************************************************************************/
31 #include <string.h>
33 #include "windef.h"
34 #include "winbase.h"
35 #include "wingdi.h"
36 #include "winuser.h"
37 #include "tweak.h"
38 #include "options.h"
39 #include "debugtools.h"
41 DEFAULT_DEBUG_CHANNEL(tweak);
43 /******************************************************************************
45 * int TWEAK_Init()
47 * Does the full initialization of the Win95 tweak subsystem. Return value
48 * indicates success. Called by loader/main.c's MAIN_Init().
50 * Revision history
51 * 05-Jul-1997 Dave Cuthbert (dacut@ece.cmu.edu)
52 * Original implementation.
53 * 22-Sep-1998 Eric Kohl (ekohl@abo.rhein-zeitung.de)
54 * Removed unused code and added Win98 option.
55 * 23-Aug-2000 Andreas Mohr (a.mohr@mailto.de)
56 * Speedup and code cleanup.
58 *****************************************************************************/
60 WINE_LOOK TWEAK_WineLook = WIN31_LOOK;
62 int TWEAK_Init (void)
64 static const char *OS = "Win3.1";
65 char szIniString[80];
67 PROFILE_GetWineIniString ("Tweak.Layout", "WineLook", "Win31", szIniString, 80);
69 /* WIN31_LOOK is default */
70 if (!strncasecmp (szIniString, "Win95", 5)) {
71 TWEAK_WineLook = WIN95_LOOK;
72 OS = "Win95";
74 else if (!strncasecmp (szIniString, "Win98", 5)) {
75 TWEAK_WineLook = WIN98_LOOK;
76 OS = "Win98";
78 TRACE("Using %s look and feel.\n", OS);
79 return 1;