Michael Stefaniuc
e13011f63e
user32: Simplify a RECT copy.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 19:59:31 +09:00
Michael Stefaniuc
07ada9a85b
user32: Use SetRect() instead of open coding it.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 19:59:30 +09:00
Alexandre Julliard
911e59c133
user32: Store window station objects under the session directory.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-18 16:21:24 +09:00
Dmitry Timoshkov
59ba31d1fc
user32: Properly handle invalid parameters in CharToOem[Buff]W and OemToChar[Buff]W.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 20:12:12 +09:00
Dmitry Timoshkov
80d655ca75
user32: Properly handle invalid parameters in CharToOem[Buff]A and OemToChar[Buff]A.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 20:12:09 +09:00
Michael Stefaniuc
a1f0d09ab3
user32/tests: Use wine_dbgstr_rect() to print RECTs.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 16:15:52 +09:00
Michael Stefaniuc
488562904f
user32: Use InflateRect() too when stretching the RECT in just one axis.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 17:41:35 +09:00
Michael Stefaniuc
62c3bce847
user32: Use InflateRect() instead of open coding it.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 10:58:50 +09:00
Michael Stefaniuc
ce88870982
user32/tests: Avoid using CopyRect().
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 22:16:35 +09:00
Michael Stefaniuc
c03ccff2ba
user32/tests: Finish the move to use wine_dbgstr_rect().
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-21 00:23:56 +09:00
Michael Stefaniuc
827cd8f332
user32/tests: Use the stricter !IsRectEmpty() check.
...
The EMPTY macro is much stricter than IsRectEmpty() as it checks for
zero heigth AND width aka rect has the size of a point.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-21 00:23:56 +09:00
Michael Stefaniuc
4730f4fffb
user32/tests: Remove some old broken behavior.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-21 00:23:56 +09:00
Michael Stefaniuc
bca5acb5ca
user32: Use EqualRect() instead of memcmp() to compare RECTs.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-21 00:23:55 +09:00
Michael Stefaniuc
41d01871fe
user32/tests: Add some IsRectEmpty() tests.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:23 +09:00
Michael Stefaniuc
7f5adb69cd
user32/tests: Use wine_dbgstr_rect() to print RECTs.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:21 +09:00
Michael Stefaniuc
82fa7dea2a
user32/tests: Remove an unused macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:20 +09:00
Michael Stefaniuc
ea50a4f8d8
user32/tests: Use wine_dbgstr_rect() in the win tests.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-13 19:50:20 +09:00
Alexandre Julliard
fb6304119a
user32: Add helper functions to get and set the window internal flags.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-13 19:46:30 +09:00
Alexandre Julliard
2e4f89edf1
user32: Notify explorer when the active window changes.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-10 20:34:03 +09:00
Jacek Caban
bce9e1d2bd
user32: Make SetWindowLongW hotpatchable.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-09 12:11:44 +09:00
Alexandre Julliard
ac2b288b27
user32: Remove redundant system menu handle checks.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-08 16:12:46 +09:00
Alexandre Julliard
83ed0a636b
user32: Setup system menu even when used through TrackPopupMenu.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-08 16:12:26 +09:00
Michael Stefaniuc
9ed915083f
user32: Use InflateRect() instead of open coding it.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-06 18:48:34 +09:00
Michael Stefaniuc
4b26eef83c
user32/tests: Use EqualRect() instead of open coding it.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-06 18:48:34 +09:00
Andrey Gusev
647ecec46d
user32/tests: Fix a typo in ok() messages.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-03 12:31:07 +09:00
Nikolay Sivov
54f41ae3eb
user32/tests: Some tests for EqualRect()/SetRect().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-03 12:30:17 +09:00
Nikolay Sivov
59ee884bdf
user32/tests: Fix a leak when creating test icons (Valgrind).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-01 00:21:49 +09:00
Alexandre Julliard
596c16cc13
user32: Post notification to the desktop window for window creation/activation.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-31 13:53:15 +09:00
Andrey Gusev
a0c651cd7c
user32: Fix a typo in comment.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-27 00:15:10 +09:00
Alexandre Julliard
5fdcacad0a
user32: Make spacing consistent between DrawCaptionTemp and NC_DrawCaption.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-26 22:14:51 +09:00
Alexandre Julliard
b4bccfee05
user32: Use the monitor rectangle to position icons on the desktop.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-26 16:56:15 +09:00
Alexandre Julliard
100239d90f
user32: Take the arrange flags into account when positioning icon windows.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-26 16:56:15 +09:00
Andrey Gusev
5a0596ed10
user32/tests: Fix a typo in ok() message.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-23 14:09:08 +09:00
Alexandre Julliard
d104891433
user32: Only start reusing DCEs after the cache reached its limit.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-21 09:55:18 +09:00
Alexandre Julliard
d341b0c381
user32: Completely free owned DCEs when the corresponding window/class is destroyed.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-21 09:55:03 +09:00
Alexandre Julliard
5f7e4ce642
user32: Fix refcounting of window DCEs.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-21 09:54:01 +09:00
Vincent Povirk
b68e03f9c9
user32: Don't regard the clipboard as changed if we don't own it.
...
I ran into a situation where user32 will call EndClipboardUpdate even though
the clipboard hasn't changed. It went something like this:
* Program A acquires the clipboard and adds some delay-rendered data.
* Program B requests data from the clipboard, causing program A to receive
WM_RENDERFORMAT.
* Program A calls SetClipboardData to fulfill the request, setting
bCBHasChanged to TRUE.
* Program C acquires the clipboard.
* Program A opens the clipboard to enumerate the formats. When it closes the
clipboard, EndClipboardUpdate is called.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-21 00:53:52 +09:00
Vincent Povirk
1383012395
user32: Also change rcUpdate when scrolling by more than the window size.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-21 00:53:51 +09:00
Alexandre Julliard
c007b3cd46
user32: Load the default app icon with LR_SHARED to avoid a leak.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 16:38:49 +09:00
Michael Stefaniuc
5f494bfeb4
include: Use inline functions for common RECT helpers.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 21:02:29 +09:00
Francois Gouget
6fe747bbbc
user32/tests: Fix a spelling error in a scroll comment.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-16 15:32:51 +09:00
Michael Stefaniuc
21e3de63de
user32: Use IsRectEmpty() instead of open coding it.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:52 +09:00
Andrey Gusev
f5531dc347
user32/tests: Fix a typo in comment.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:51 +09:00
André Hentschel
2d62300060
user32/tests: Don't test function directly when reporting GetLastError().
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:51 +09:00
Jacek Caban
912d7474c0
user32/tests: Added PrivateExtractIcons test.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 18:33:49 +09:00
Jacek Caban
03b93eeeff
user32: Use proper types in ICO_GetIconDirectory.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 18:33:44 +09:00
Jacek Caban
5aaa8e25ad
user32/tests: Moved creating .ico file into a helper function.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 18:33:14 +09:00
Pierre Schweitzer
bfb7e167cb
user32: Check bounds before dereferencing.
...
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 18:30:50 +09:00
Andrey Gusev
2454bbd5e4
user32/tests: Fix a typo in ok() message.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 12:26:38 +09:00
Sebastian Lackner
57b7a9937d
user32: Implement SetCoalescableTimer and add basic tests.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:30:57 +09:00