Rein Klazes
13b9923165
user32: Implement saving and fix reading of nonclient metrics.
...
With conformance tests.
2005-12-16 12:38:06 +01:00
Rein Klazes
105450db4a
user: Read/save minimized metrics from/to registry.
2005-12-14 12:27:39 +01:00
Rein Klazes
6154b46bef
GetSystemMetrics fixes with corresponding tests.
2005-11-22 14:56:11 +00:00
Rein Klazes
8f3b9d506b
Fix SysparametersInfoA( SPI_SETICONMETRICS), the A<->W conversion was
...
rather broken.
Make the SPI_{G|S}ETICONMETRICS functions more consistent with those
for SPI_ICON{HORIZONTAL|VERTICAL}SPACING, SPI_{G|S}ICONTITLEWRAP and
SPI_{G|S}ICONTITLELOGFONT.
Accordingly extend the corresponding tests.
2005-11-14 15:12:14 +00:00
Rein Klazes
7e6b325929
Re-enable SPI_{GET,SET}BORDER tests and fix the bugs that caused them
...
to be disabled.
Add tests that show that the border value manipulated by
SPI_{GET,SET}BORDER is completely the same as with
SPI_{GET,SET}NONCLIENTMETRICS.
Fix a few signed/unsigned warnings in unrelated tests from the same
source file.
Made the tests pass on wine.
2005-11-08 19:58:37 +00:00
Rein Klazes
53b1d05164
Make SystemParametersInfoA( SPI_SETNONCLIENTMETRICS, ...) work by
...
adding the needed non client metrics A->W conversions.
2005-11-07 16:39:21 +00:00
Kimmo Myllyvirta
4d0f076092
If HKCU\Software\Wine does not yet exist, create it as non-volatile
...
key, instead of volatile.
2005-09-18 11:11:49 +00:00
Vitaly Lipatov
a4590d2b23
- remove return: now break loop if can't change state during test
...
- add test for value returned by SwapMouseButton
- fix SwapMouseButton return value (it returns previous state)
2005-08-25 19:18:49 +00:00
Mike McCormack
79b29158e8
Fix gcc 4.0 warnings.
2005-08-22 10:19:34 +00:00
Mike McCormack
eafa666bee
Fix some gcc 4.0 warnings.
2005-08-22 09:26:53 +00:00
Alexandre Julliard
15ec968724
Load the USER driver on demand instead of at user32 load time.
...
Provide a fallback implementation for all the functions to avoid
having to check for NULL functions everywhere.
2005-07-18 15:14:56 +00:00
Alexandre Julliard
2997fc51a4
Fixed a few prototypes in the USER driver.
2005-07-18 13:20:18 +00:00
Alexandre Julliard
81008167c2
Load system metrics on demand instead of initializing everything at
...
user32 load time.
2005-07-18 09:20:07 +00:00
Alexandre Julliard
b5cc0a79fb
Added a bunch of utility functions to factor out a lot of the repeated
...
code in SystemParametersInfoW.
2005-07-15 16:35:27 +00:00
Frank Richter
cd57c21259
Always zero destination buffer in SYSPARAMS_LoadRaw(). Remove
...
now-superfluous memory zeroing in some other places.
2005-07-08 11:30:50 +00:00
Frank Richter
7f40463d6a
Add support for proper saving of the "FLATMENU" and "GRADIENTCAPION"
...
system parameters to the registry.
2005-07-07 18:24:35 +00:00
Felix Nawothnig
cbe914c472
Clear buffer before querying the registry in SYSPARAMS_Load.
2005-07-06 11:11:17 +00:00
Mike McCormack
c787b146e1
-Wpointer-sign fixes for gcc 4.0.
2005-07-06 10:36:28 +00:00
Frank Richter
66033f6b37
Add support for SPI_[SG]ETFLATMENU in SystemParametersInfo (although
...
without saving of the setting).
2005-07-05 10:55:44 +00:00
Alexandre Julliard
a2b2456b99
Revert SPI_SETMOUSEBUTTONSWAP changes.
2005-06-30 18:14:14 +00:00
Mike McCormack
5c1ffddb88
Fix declarations, remove unused code.
2005-06-22 18:05:02 +00:00
Rein Klazes
9048257dd9
In reg_get_logfont:
...
- handle the case that the registry value is a LOGFONT16;
- if the lfHeight field is positive, it represents the font's point
size and must be converted to logical units.
2005-06-21 20:02:54 +00:00
Vitaly Lipatov
0624e17e7e
Fix returned value for SPI_SETMOUSEBUTTONSWAP.
2005-06-20 15:36:17 +00:00
Alexandre Julliard
d4156b5657
Use a better location than HKCU\Wine for saving the temporary
...
parameters.
2005-06-14 17:26:52 +00:00
Alexandre Julliard
2e4bca9db5
Added magic comments to all Wine-specific registry accesses to make
...
them easier to grep.
2005-06-13 18:56:00 +00:00
Huw Davies
fe42f46c8a
Read the entire logfont from the registry if it exists.
2005-06-08 18:34:20 +00:00
Alexandre Julliard
0260e2b543
Moved functions from windows/user.c to more appropriate places, and
...
get rid of that file.
2005-05-25 18:42:37 +00:00
Rein Klazes
67747801cd
Use the screen resolution to convert from twips (1440 twips is one
...
inch) to pixels.
2005-05-25 18:01:15 +00:00
Alexandre Julliard
0844afc310
Moved the syscolor functions to dlls/user/sysparams.c.
2005-05-25 17:56:35 +00:00
Michael Stefaniuc
d5e8a65f96
Add some SystemParametersInfo SPI_* defines.
2005-05-16 08:45:15 +00:00
Alexandre Julliard
b58c170c4d
Make the SwapMouseButton function and the SPI_SETMOUSEBUTTONSWAP
...
parameter work on the same flag.
2005-03-09 11:51:31 +00:00
Alexandre Julliard
32e4ca0ec1
Set SM_DBCSENABLED according to the current locale instead of
...
hardcoding it to 0 (found by Mike McCormack).
2005-03-07 17:16:26 +00:00
Justin Chevrier
dd99a50f37
Point KEYBOARDPREF and SCREENREADER to registry keys and values that
...
match native.
2005-02-22 14:54:47 +00:00
Justin Chevrier
564aceddca
- Implement SPI_{GET,SET}POWEROFFACTIVE and SPI_SETLOWPOWERACTIVE.
...
- Corrected SPI_GETLOWPOWERACTIVE to use an index (instead of its SPI
value) to avoid an out of bounds condition.
- Created unit tests for SPI_{GET,SET}POWEROFFACTIVE and
SPI_{GET,SET)SETLOWPOWERACTIVE.
2005-02-21 20:40:44 +00:00
Mike McCormack
0fba748f2a
Add some more SPI values.
2005-02-15 15:43:43 +00:00
Justin Chevrier
7c14a9d493
- SPI_GETWORKAREA: Read work area information from system metrics
...
initially only and not from a WINE specific registry entry.
- SPI_SETWORKAREA: Don't save work area information to registry.
2005-02-01 18:47:05 +00:00
Bernd Fuhrmann
b6572eaa53
Added fixme macros in SystemParametersInfoW for several action numbers
...
that are yet unimplemented.
2005-01-24 12:41:39 +00:00
Justin Chevrier
3582a175c5
- Implemented SPI_SETICONMETRICS.
...
- Fixed SPI_GETICONTITLELOGFONT to only return values retrieved from
win.ini on first call and return a cached version in subsequent
calls.
- Created unit test for SPI_{GET,SET}ICONMETRICS.
2005-01-20 20:43:02 +00:00
Justin Chevrier
acb223ee21
- Implemented SPI_GETMINIMIZEDMETRICS calculated from values returned
...
by GetSystemMetrics.
- Implemented SPI_SETMINIMIZEDMETRICS. Determined that the values set
here are valid for the current session only and will not persist
across reboots.
2005-01-14 16:49:12 +00:00
Justin Chevrier
a33c7d89db
- Revert previous change of border metric to reference the
...
registry. Testing on Win98/WinXP showed that regardless of the
"BorderWidth" value CM_C{X,Y}BORDER always returns 1.
- Point SPI_SETBORDER to "BorderWidth" under "HKCU\Control
Panel\Desktop\WindowMetrics" instead of "HKCU\Control Panel\Desktop"
to make it match Windows.
2005-01-12 19:28:16 +00:00
Justin Chevrier
01e2bdbf16
- Obtain border size of windows from registry if available.
...
- Obtain icon size from registry if available.
- Create a WindowMetrics section in the default registry and populate
it with all currently supported metrics (that are setup to read from
the registry).
2005-01-06 19:39:52 +00:00
Justin Chevrier
e603d1a0dd
Converted system metrics to Unicode.
2005-01-03 16:59:41 +00:00
Mike McCormack
6533efb6a0
Dump known but unimplemented SystemParameterInfo actions.
2004-12-23 11:24:25 +00:00
Alexandre Julliard
4a9b22b2c3
Merged system metrics support into sysparams.c, and moved that file to
...
the dlls/user directory.
2004-12-09 13:48:56 +00:00