Alexander Kochetkov
8037de9f02
user32: Fix arithmetic overflow in GetThumbVal.
2010-01-11 11:29:05 -06:00
Nikolay Sivov
ba51a6c9bc
user32/tests: Forward test proc to default dialog procedure instead of window's one.
2010-01-08 17:04:00 +01:00
Marcus Meissner
69bf18567f
user32: EM_REPLACESEL - handle OOM error.
2010-01-06 17:23:08 +01:00
Marcus Meissner
4d96ffb52b
user32: Remove useless NULL check (Coverity).
2010-01-06 17:22:31 +01:00
Alexandre Julliard
993de4d82f
user32: Remove a useless comment.
2010-01-06 09:54:35 +01:00
Detlef Riekenberg
2f529c39fd
user32: Move a comment about HLOCAL16 to user.exe.
2010-01-05 18:08:19 +01:00
James Hawkins
289047c735
user32: Don't try to free a handle with a value of 1, which is the dde handle value for asynchronous operations.
2010-01-05 12:29:03 +01:00
Joel Holdsworth
95ac10e526
user32: Fixed icons to select correct image in high colour depth.
2009-12-31 12:12:17 +01:00
Dmitry Timoshkov
2d0b2433c2
user32: Handle virtual key codes only in the WM_KEYDOWN case.
...
Reported by David Quintana.
2009-12-30 16:14:11 +01:00
Marcus Meissner
36f9248c1a
user32: Initialize hICON to NULL (Coverity).
2009-12-30 16:12:24 +01:00
Nikolay Sivov
ff12594a15
user32/uitools: Fix FillRect behaviour for invalid brush passed.
2009-12-30 16:11:51 +01:00
Nikolay Sivov
385b8dcb95
user32/sysparams: Return NULL from GetSysColorBrush() for invalid index.
2009-12-30 13:40:43 +01:00
Nikolay Sivov
2a0fca79ae
user32/tests: Add tests for invalid index in GetSysColorBrush().
2009-12-29 15:42:02 +01:00
Alexandre Julliard
b96ab35cad
user32: Move loading of static icons for 16-bit windows to the 16-bit wrapper.
2009-12-28 23:50:40 +01:00
Alexandre Julliard
9ceda48337
user32: Load the 32-bit user.exe module wrapper from the 32-bit side.
2009-12-28 23:50:40 +01:00
Alexandre Julliard
40a264b0e7
winevdm: Move the loading of the system drivers into their specific 16-bit module.
2009-12-28 23:50:40 +01:00
Michael Stefaniuc
6f3b494463
user32: Remove some explicit LPARAM/WPARAM casts.
2009-12-28 12:27:13 +01:00
Michael Stefaniuc
7e2b624896
user32/tests: Remove some explicit LPARAM/WPARAM casts.
2009-12-28 12:27:13 +01:00
Alexandre Julliard
537877adae
user32: Move handling of listbox sizes for Win 3.1 apps to the 16-bit code.
2009-12-24 21:09:17 +01:00
Alexandre Julliard
5d92931933
user32: Use a standard critical section instead of a syslevel for the USER lock.
2009-12-24 17:42:19 +01:00
Alexandre Julliard
8aa83d326a
user32: Make user.exe into a stand-alone 16-bit module.
2009-12-24 12:15:12 +01:00
Alexandre Julliard
4b4b6a48cb
user32: Use the wait message handler for the yield in PeekMessageW too.
2009-12-24 12:08:02 +01:00
Alexandre Julliard
b33c5f163a
user32: Add a WoW wrapper for message waiting to allow releasing the Win16 lock in the 16-bit code.
2009-12-24 12:07:44 +01:00
Alexandre Julliard
2ea73fd709
user32: Remove the no longer needed WIN_ISDIALOG flag.
2009-12-23 21:13:58 +01:00
Alexandre Julliard
5e640271f2
user32: Remove the no longer used WIN_ISWIN32 flag.
2009-12-23 21:10:59 +01:00
Alexandre Julliard
da57abcb02
user32: Move a few 16-bit stubs to user16.c.
2009-12-23 19:49:27 +01:00
Alexandre Julliard
cf81d0f0f9
user32: Remove remaining calls to internal 32-bit functions from msg16.c.
2009-12-23 19:45:41 +01:00
Alexandre Julliard
b63d0e19ed
user32: Replace spy functions by a simple trace in 16-bit code.
2009-12-23 19:45:03 +01:00
Alexandre Julliard
a0f9da117a
user32: Remove some redundant 16-bit message traces.
2009-12-23 19:35:56 +01:00
Alexandre Julliard
b201a41edf
user32: Export the WIN_GetFullHandle function through the WoW handlers.
2009-12-23 19:34:58 +01:00
Alexandre Julliard
eb36bb2e47
user32: Export DIALOG_get_info and DIALOG_DoDialogBox through the WoW handlers.
2009-12-23 19:34:41 +01:00
Alexandre Julliard
7f11441af9
user32: Duplicate DIALOG_Enable/DisableOwner implementation on the 16-bit side.
2009-12-23 19:33:26 +01:00
Alexandre Julliard
ecca543ff2
user32: Don't store the 16-bit hook info in the 32-bit thread queue structure.
2009-12-23 14:27:31 +01:00
Alexandre Julliard
1bee9f4f71
user32: Make HOOK_IsHooked function static.
2009-12-23 14:27:31 +01:00
Alexandre Julliard
83b66549da
user32: Get rid of 16-bit handles in the driver clipboard interface.
2009-12-23 14:27:31 +01:00
Alexandre Julliard
3313c40b7c
user32: Reimplement 16-bit clipboard functions on top of the 32-bit ones.
2009-12-23 14:27:31 +01:00
Alexandre Julliard
ffe9ace917
user32/tests: Fix some last error checks for WoW64.
2009-12-23 14:27:31 +01:00
Alexandre Julliard
388814dfa9
user32: Avoid accessing the window structure directly in Get/SetWindowLong16.
2009-12-23 14:27:29 +01:00
Alexandre Julliard
4e343b6f3a
user32: Avoid accessing the window structure directly in DispatchMessage16.
2009-12-23 14:27:28 +01:00
Alexandre Julliard
73cf431aac
user32: Get rid of support for extracting icons from builtin dlls.
...
We now have fake dll files for all dlls, the icons can be loaded from there.
2009-12-23 14:27:22 +01:00
Alexandre Julliard
2919c49d7f
user32: Don't cache 16-bit instance resources on the 32-bit side.
2009-12-23 14:26:51 +01:00
Alexandre Julliard
cecb3a993c
user32: Allocate user handles for cursors/icons when we don't have 16-bit support.
2009-12-22 17:35:41 +01:00
Alexandre Julliard
0f511f3c8e
user32: Don't assume global handles in CopyIcon.
2009-12-22 17:27:59 +01:00
Alexandre Julliard
b36ca48608
user32: Call the cursor/icon handle allocation functions through the WoW handlers table.
2009-12-22 17:27:57 +01:00
Alexandre Julliard
0280f058f9
user32: Add wrapper functions for manipulation of cursor/icon handles.
2009-12-22 17:27:25 +01:00
Alexandre Julliard
00e75f2b9e
user32: Reimplement MENU_FindSubMenu on the 16-bit side using only exported functions.
2009-12-22 17:00:12 +01:00
Alexandre Julliard
b615656f00
user32: Get rid of the 16-bit dialog heap.
...
Edit controls don't allocate memory on the 16-bit heap anyway.
2009-12-22 15:35:15 +01:00
Alexandre Julliard
009badeb32
user32: Delay creation of the 16-bit dialog info structure until the window is created.
...
This mirrors the behavior of the 32-bit side.
2009-12-22 15:34:19 +01:00
Alexandre Julliard
ce05f49843
user32: Avoid including winuser16.h in 32-bit files.
2009-12-22 13:48:24 +01:00
Alexandre Julliard
df3e5a8762
user32: Reimplement MapWindowPoints16 and move it to wnd16.c.
2009-12-22 13:48:24 +01:00
Alexandre Julliard
1d1f8e2a2c
user32: Move DestroyIcon32 implementation to user16.c.
2009-12-22 13:48:19 +01:00
Alexandre Julliard
0fbe20a254
user32: Move freeing of a 16-bit module's classes to wnd16.c.
2009-12-22 12:33:33 +01:00
Alexandre Julliard
e3bcc11beb
user32: Move freeing of a 16-bit module's icons to user16.c.
2009-12-22 12:16:24 +01:00
Alexandre Julliard
d5b270eadd
user32: Reimplement loading of 16-bit cursors and icons using 16-bit resource functions.
2009-12-22 12:14:46 +01:00
Alexandre Julliard
5a35c490a1
user32: Always return the actual pointer instead of a winproc handle in WINPROC_GetProc16.
2009-12-22 12:12:36 +01:00
Alexandre Julliard
3806f9aee9
user32: Move a number of 16-bit cursor/icon functions to user16.c.
2009-12-21 15:36:52 +01:00
Alexandre Julliard
671b4d129d
user32: Get rid of the CURSORICON_Copy internal function.
2009-12-21 15:36:52 +01:00
Alexandre Julliard
7de210fb5c
user32: Reimplement CopyIcon16/CopyCursor16 using CreateCursorIconIndirect16.
2009-12-21 15:36:52 +01:00
Alexandre Julliard
001abc3c62
user32: Use CreateIconIndirect to implement CreateCursor.
2009-12-21 15:36:52 +01:00
Mike Kaplinskiy
075a1e0e4d
user32: Fix color mask handling in CreateIconIndirect.
2009-12-21 15:01:25 +01:00
Michael Stefaniuc
6c7c2401ad
user32/tests: Don't cast NULL to an integer type.
2009-12-21 15:01:25 +01:00
Alexandre Julliard
8e1bd0c893
user32: Fix the string style check for comboboxes.
2009-12-21 15:01:22 +01:00
Alexandre Julliard
cb060d6449
user32: Support calling a 32-bit procedure even without a corresponding thunk in CallWindowProc16.
2009-12-21 15:01:02 +01:00
Alexandre Julliard
ce50559013
user32: Send all CreateWindow calls through the WoW wrapper to allow mapping 16-bit instances.
2009-12-21 15:00:35 +01:00
Alexandre Julliard
25d7e0b968
user32: Move wsprintf16 to user16.c.
2009-12-18 12:44:26 +01:00
Alexandre Julliard
77ab435402
user32: Make WINPROC_AllocProc take a unicode flag for consistency with the other winproc functions.
2009-12-18 12:41:59 +01:00
Alexandre Julliard
d081a7352c
user32: Simplify window procedure allocation for the builtin classes.
2009-12-18 12:39:13 +01:00
Alexandre Julliard
6b0cdc1922
user32: Pre-allocate the window procedure for the message class.
2009-12-18 12:38:22 +01:00
Alexandre Julliard
e6f15c5886
user32: Pre-allocate the window procedure for the menu class.
2009-12-18 12:37:58 +01:00
Alexandre Julliard
d88c34099b
user32: Pre-allocate the window procedure for the icon title class.
2009-12-18 12:37:05 +01:00
Alexandre Julliard
0c4e151ee9
user32: Pre-allocate the window procedure for the desktop class.
2009-12-18 12:36:33 +01:00
Alexandre Julliard
6b78e24a09
user32: Move EnumProps16 to wnd16.c.
2009-12-17 17:24:16 +01:00
Alexandre Julliard
15000f32b6
user32: Move the 16-bit menu functions to user16.c.
2009-12-17 15:04:21 +01:00
Alexandre Julliard
8494682f2d
user32: Move 16-bit window creation functions to 16-bit files.
2009-12-17 15:03:32 +01:00
Alexandre Julliard
4b3c0e31d0
user32: Use W structures in window creation code.
2009-12-17 15:00:38 +01:00
Alexandre Julliard
bfcfe437e2
user32: Move loading of the 16-bit window menu to CreateWindowEx16.
2009-12-17 14:48:06 +01:00
Alexandre Julliard
aabe5f150f
user32: Move 16-bit instance normalization to CreateWindowEx16.
2009-12-17 14:36:26 +01:00
Alexandre Julliard
1b2ea8b2e9
user32: Pre-allocate the window procedure for DefWindowProc.
2009-12-17 13:25:50 +01:00
Alexandre Julliard
53393b0f1c
user32: Pre-allocate the window procedure for the MDI client class.
2009-12-17 13:25:16 +01:00
Alexandre Julliard
0cbf191add
user32: Pre-allocate the window procedure for the dialog class.
2009-12-17 13:09:50 +01:00
Alexandre Julliard
80a09a7899
user32: Pre-allocate the window procedure for the static class.
2009-12-17 13:09:50 +01:00
Alexandre Julliard
1e43d19753
user32: Pre-allocate the window procedure for the scrollbar class.
2009-12-17 13:09:50 +01:00
Alexandre Julliard
c0f3f5a1d2
user32: Pre-allocate the window procedure for the listbox class.
2009-12-17 13:09:50 +01:00
Alexandre Julliard
87ede8949a
user32: Get rid of the EDIT_winproc_handle variable.
2009-12-17 13:09:50 +01:00
Alexandre Julliard
6400dabf40
user32: Pre-allocate the window procedure for the edit class.
2009-12-17 13:09:50 +01:00
Alexandre Julliard
05cf0ff29f
user32: Pre-allocate the window procedure for the combobox class.
2009-12-17 13:09:50 +01:00
Alexandre Julliard
87f83f8618
user32: Pre-allocate the window procedure for the button class.
2009-12-17 13:09:49 +01:00
Alexandre Julliard
7265e89226
server: Set the idle event when retrieving a timer message.
2009-12-16 18:18:07 +01:00
Alexandre Julliard
92e704edc5
server: Don't set the idle event when waiting for a message reply.
2009-12-16 18:06:38 +01:00
Alexandre Julliard
7d4e28480d
server: Any thread can set the idle event, don't treat the first one differently.
2009-12-16 18:06:32 +01:00
Alexandre Julliard
b57cc5561b
server: Don't reset the idle event when the client stops waiting.
2009-12-16 18:06:14 +01:00
Alexandre Julliard
d1dc48d8dc
server: Don't set the idle event when a queue is destroyed, instead return success in WaitForInputIdle on process exit.
2009-12-16 18:00:34 +01:00
Alexandre Julliard
ea4babc511
user32/tests: Always reset events when starting a WaitForInputIdle test.
2009-12-16 18:00:12 +01:00
Alexandre Julliard
314d2c3e1c
user32: Add a Wow handler for the mdi client class.
2009-12-16 13:22:08 +01:00
Alexandre Julliard
b51311d60c
user32/tests: Fix a number of message test failures on various Windows boxes.
2009-12-16 12:42:40 +01:00
Alexandre Julliard
fb97908119
user32: Move the 16-bit message mapping functions to msg16.c.
2009-12-15 20:18:47 +01:00
Alexandre Julliard
552fc29b26
user32: Move 16-bit winproc functions to msg16.c.
2009-12-15 20:15:02 +01:00
Alexandre Julliard
fc0244cb32
user32: Store the 16-bit winproc in a different array from the 32-bit A/W ones.
2009-12-15 20:14:25 +01:00
Alexandre Julliard
73c93466a2
user32: Move more 16-bit winproc functions inside the i386 ifdef.
2009-12-15 20:13:11 +01:00
Alexandre Julliard
6af1df86ce
user32: Add 16-bit translation for parameters of the WM_H/VSCROLL edit messages.
2009-12-15 16:09:13 +01:00
Alexandre Julliard
8649f73056
user32: Turn the static winproc into a Wow handler.
2009-12-15 16:09:13 +01:00
Alexandre Julliard
3dc6317fc6
user32: Turn the scrollbar winproc into a Wow handler.
2009-12-15 16:09:13 +01:00
Alexandre Julliard
57e5c8f67a
user32: Turn the edit winproc into a Wow handler.
2009-12-15 16:09:13 +01:00
Alexandre Julliard
9f12c730e1
user32: Turn the listbox winproc into a Wow handler.
2009-12-15 16:09:13 +01:00
Alexandre Julliard
57d439f4f1
user32: Turn the combobox winproc into a Wow handler.
2009-12-15 16:09:13 +01:00
Alexandre Julliard
02e74fa8a6
user32: Implement UserRegisterWowHandlers function and add a handler for the button winproc.
2009-12-15 16:09:13 +01:00
Alexandre Julliard
d6dfcf94b0
user32/tests: Add a number of tests for WaitForInputIdle.
...
With help from Dmitry Timoshkov.
2009-12-15 16:08:40 +01:00
Alexandre Julliard
6c253bb143
user32: Return failure in WaitForInputIdle if we can't open the idle event.
2009-12-15 13:10:10 +01:00
Alexandre Julliard
9727750c79
user32: Move Get/SetWindowLong16 implementation to wnd16.c.
2009-12-14 12:04:02 +01:00
Alexandre Julliard
2f0bfbac36
user32: Remove the no longer used WINPROC_CallDlgProc16 function.
2009-12-14 12:04:02 +01:00
Alexandre Julliard
57e9244ab6
user32: Move SystemParametersInfo16 to user16.c.
2009-12-14 12:03:55 +01:00
Alexandre Julliard
fb20226475
user32: Split the handling of the 16-bit messages out of the static winproc.
2009-12-13 12:13:19 +01:00
Alexandre Julliard
11ed5da3fd
user32: Split the handling of the 16-bit messages out of the scrollbar winproc.
2009-12-13 12:13:14 +01:00
Alexandre Julliard
8b226ac4d6
user32: Split the handling of the 16-bit messages out of the listbox winproc.
2009-12-13 12:13:06 +01:00
Alexandre Julliard
51770cdbbc
user32: Split the handling of the 16-bit messages out of the combo winproc.
2009-12-13 12:12:56 +01:00
Alexandre Julliard
68775d9134
user32: Split the handling of the 16-bit messages out of the button winproc.
2009-12-13 12:12:47 +01:00
Alexandre Julliard
68656c0c3f
user32: Split the handling of the 16-bit messages out of the edit winproc.
2009-12-13 12:12:21 +01:00
Alexandre Julliard
810e701a3f
user32: Store the 16-bit edit handle directly in the window extra bytes.
2009-12-11 20:22:49 +01:00
Alexandre Julliard
7e9721f8f2
user32: Split the code that deals with the 16-bit edit buffer handle to separate functions.
2009-12-11 20:21:52 +01:00
Alexandre Julliard
dcec342b50
user32: Add a thunking mechanism for 16-bit edit word break procedures.
2009-12-11 20:20:54 +01:00
Huw Davies
6b8c9aee4f
user32: Pad lfFaceName so we don't write uninitialised data to the registry.
...
Found by Valgrind.
2009-12-04 15:49:26 +01:00
Huw Davies
6fc8234300
user32: Pad lfFaceName so we don't write uninitialised data to the registry.
...
Found by Valgrind.
2009-12-04 15:48:19 +01:00
Nikolay Sivov
aa737174f0
user32/edit: Check for edit window to be here in case of destruction during handler execution.
2009-12-03 10:16:39 +01:00
Nikolay Sivov
0e16d4cd5b
user32/tests: Free window after use.
2009-12-03 10:15:33 +01:00
Nikolay Sivov
48cb3a30b5
user32/tests: Restore original procedure to let control clean up.
2009-12-03 10:15:24 +01:00
Dan Kegel
3e28e4ab0f
user32/tests: Allocate big enough buffer for UnpackDDElParam test.
2009-12-03 10:12:30 +01:00
Luke Benstead
7fc8aed47f
user32: Implement PrintWindow.
2009-12-02 12:16:03 +01:00
Paul Vriens
50cec6e989
include: Add some system parameters.
2009-11-30 13:13:33 +01:00
Nikolay Sivov
916e38f969
user32/tests: Free memory after use.
2009-11-30 12:57:05 +01:00
Marcus Meissner
1667a2469e
user32: Fixed NULL ptr checks (Coverity).
2009-11-24 10:51:34 +01:00
Ilya Shpigor
da9c52371e
user32: Destroy EDITSTATE structure in the WM_NCDESTROY message processing.
2009-11-16 17:06:21 +01:00
Nikolay Sivov
1b96626750
user32: Free window text to prevent leak in case when WM_NCDESTROY doesn't get to default procedure.
2009-11-16 15:01:22 +01:00
Rico Schüller
a679b4e3af
user32: Add argument check for PTITLEBARINFO in GetTitleBarInfo().
2009-11-13 11:52:25 +01:00
Alexandre Julliard
727f23c581
user32: No longer export the 16-bit dialog and message functions.
2009-11-13 11:52:23 +01:00
Alexandre Julliard
b76f85872c
user32: Use the correct type for the return value of DefDlgProcA/W.
2009-11-13 11:52:15 +01:00
Alexandre Julliard
76dcb0ecb9
user32: Reimplement DefDlgProc16 using message mapping functions.
2009-11-13 11:11:31 +01:00
Alexandre Julliard
2a64c6b11c
user32: Move driver support to mmsystem and replace it with stubs in user.exe.
2009-11-12 23:09:21 +01:00
Alexandre Julliard
dd64dd5548
user32: Reimplement UserYield using PeekMessageW.
2009-11-12 23:09:21 +01:00
Dan Kegel
75d613f64f
user32: Fix uninitialized variable so first call to DdeGetLastError isn't undefined.
2009-11-09 19:35:55 +01:00
Ilya Shpigor
e6f0404076
user32: Fix switching focus to parent after child hiding.
2009-11-05 14:45:33 +01:00
Alexandre Julliard
5950c6af80
user32: Specify the full application path when starting builtin apps.
2009-10-27 11:22:38 +01:00
Paul Vriens
eaec876917
user32/tests: Fix a typo.
2009-10-23 20:01:53 +02:00
Paul Vriens
05765a0b0c
user32/tests: Skip some tests on Win9x/WinMe.
2009-10-23 15:54:08 +02:00
Detlef Riekenberg
6f6ce4a325
user32: Bump version to XP values.
2009-10-23 15:54:08 +02:00
Alexandre Julliard
1b27890af6
user32: Fix the return value of EnumThreadWindows.
2009-10-23 15:54:07 +02:00
Alexandre Julliard
67cbdfb575
user32: Don't print CreateWindow warning for HWND_MESSAGE windows.
2009-10-23 12:23:51 +02:00
Alexandre Julliard
12cb58c426
user32: Data chunks in RIFF file must be word-aligned.
2009-10-22 15:15:00 +02:00
Julius Schwartzenberg
9f548bd9b8
user32/tests: Test extra value of standard dialog and edit classes.
2009-10-22 14:36:15 +02:00
Julius Schwartzenberg
8e899e0076
user32: Change extra value for standard edit class to 6.
...
Civilization II crashes when trying to display an edit box when this
value is anything other than six. It crashes in exactly the same way
on Windows XP 64-bit.
2009-10-22 14:35:58 +02:00
Nikolay Sivov
77fe22b226
user32/win: Release scroll window data on window destruction.
2009-10-21 16:05:59 +02:00