Commit Graph

107 Commits

Author SHA1 Message Date
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
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 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
Rodrigo Rivas Costa 5e65b65219 user32: Make DeferWindowPos() fail on invalid window handles.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-11 19:32:12 +09:00
Jacek Caban da72de967b user32: Allow making window visible by WM_SETREDRAW message. 2015-03-13 21:53:19 +09:00
Drew Ronneberg f271634296 user32: Do not call SendMessage() to hide a window that is already hidden. 2014-11-21 20:08:33 +09:00
Sebastian Lackner b43f13f892 user32: Fix invalid argument passed to ExtCreateRegion. 2014-11-03 20:31:10 +09:00
Piotr Caban 7257b62bd1 user32: Try to activate topmost activable window in WINPOS_ActivateOtherWindow. 2014-06-11 16:09:01 +02:00
Ken Thomases b423532f94 user32: In WINPOS_SysCommandSizeMove(), fix constraining a point to a rect's right and bottom edges. 2013-12-17 16:36:45 +01:00
Ken Thomases 03f8f85dda user32: Respect monitor work area when sizing or moving a top-level window.
This prevents dragging a window's title bar behind a menu bar across the top
of a screen, for example.
2013-12-13 12:36:08 +01:00
Ken Thomases c7d2bcfb61 user32: Fix mouseRect computation for starting position when sizing window.
The mouseRect is the limit of the mouse position to keep the window between
its minimum and maximum sizes.  The computation was correct if the mouse
started precisely on the window border.  But if the mouse is not exactly at
the border, then the mouse limit has to account for that, because the window
will be resized based on the distance from the starting point.
2013-09-12 11:07:50 +02:00
Alexandre Julliard e2c61baba0 user32: Send WM_MOVING instead of WM_SIZING when moving a window. 2012-11-26 16:01:30 +01:00
Alexandre Julliard 7fc61f6fea user32: Add some error checking in ScreenToClient and ClientToScreen. 2012-11-14 16:29:49 +01:00
Alexandre Julliard 5dea654317 user32: Properly set last error in MapWindowPoints. 2012-11-14 16:29:48 +01:00
Alexandre Julliard d2607ff6c9 user32: Force refreshing the non-client area when the window surface is changed. 2012-11-06 16:02:43 +01:00
Alexandre Julliard 49a5db3869 user32: Don't show the icon title for off-screen icons. 2012-10-15 16:17:46 +02:00
Alexandre Julliard cc7bf355c5 user32: Add support for setting the window surface visible region. 2012-10-09 15:22:56 +02:00
Alexandre Julliard 20768173ba server: Add flags in the set_window_pos request to inform the server about the window surface. 2012-10-09 15:22:14 +02:00
Alexandre Julliard ddf41276e1 user32: Invalid DCEs when the window surface changes. 2012-10-01 13:17:53 +02:00
Alexandre Julliard 91b0ee56cf user32: Default to the dummy surface if the driver doesn't provide something else. 2012-10-01 13:09:27 +02:00
Alexandre Julliard 7304445a7e user32: Maintain a list of active window surfaces and flush them periodically. 2012-09-06 12:38:13 +02:00
Alexandre Julliard a5ef549c6e user32: Add support for managing a DIB surface for a window. 2012-09-06 12:35:32 +02:00
Alexandre Julliard 75b641fc75 user32: Add a helper function to retrieve the virtual screen rectangle. 2012-09-05 21:56:55 +02:00
Alexandre Julliard 2dc234d923 user32: Only show a window the first time WS_VISIBLE is toggled, to work around Steam's WM_SETREDRAW usage. 2012-09-04 12:38:33 +02:00
Alexandre Julliard 85fed5b194 user32: Invalidate the DCEs while still holding the window lock in SetWindowPos. 2012-08-29 20:10:56 +02:00
Alexandre Julliard 4890964e31 user32: Rely on SetWindowPos to invalidate the DCEs when the window region is changed. 2012-08-29 18:08:10 +02:00
Dmitry Timoshkov 38a76ecb03 user32: SetWindowPos() should check the final window position in screen coords before adding SWP_NOMOVE. 2012-04-02 18:35:55 +02:00
Dmitry Timoshkov ea7e9ed2eb user32: RealChildWindowFromPoint should skip invisible windows. 2012-02-06 10:23:27 -06:00
David Hedberg c764210731 user32: Fix return value when passing a non-sibling preceding window to SetWindowPos.
Acrobat Reader relies on SetWindowPos, with hwndInsertAfter set to a
non-sibling window and no SWP_NOZORDER passed, to return true.
2011-03-30 15:03:44 +02:00
Alexandre Julliard 2f368cfad2 user32: Reset the cursor clip rectangle before moving a window. 2011-03-30 13:28:04 +02:00
Dmitry Timoshkov 5fea02e8c2 user32: Add the SW_SHOWDEFAULT case to WINPOS_MinMaximize(). 2011-03-29 12:58:24 +02:00
Alexandre Julliard ee44c7c0f4 user32: Fix coordinates mapping for the desktop window in the explorer process. 2010-12-13 12:43:34 +01:00
Alexandre Julliard 1829fc51c1 user32: Return some fake information for an inter-process GetWindowPlacement. 2010-12-09 20:43:26 +01:00
Alexandre Julliard 377820e313 user32: Don't rely on the cached position for windows that have a mirrored parent. 2010-10-05 11:01:21 +02:00
Alexandre Julliard 2f6d41de46 user32: Free the window region once it has been set. 2010-09-27 21:06:43 +02:00
Alexandre Julliard d43cc0cd82 user32: Fix the window positions when moving a child window for a RTL window. 2010-09-24 15:45:54 +02:00
Alexandre Julliard 9bbfcb5b07 user32: Add support for RTL window layouts in GetUpdateRgn and GetUpdateRect. 2010-09-23 17:50:11 +02:00
Alexandre Julliard 024521190a user32: Always store the window rectangles unmirrored after SetWindowPos. 2010-09-23 17:50:10 +02:00
Alexandre Julliard 5702324b37 user32: Add support for RTL window layouts in MapWindowPoints. 2010-09-22 20:27:52 +02:00
Alexandre Julliard 9b693ddadb user32: Use WIN_GetRectangles where possible instead of mapping coordinates explicitly. 2010-09-07 15:11:24 +02:00
Alexandre Julliard 141defbd54 user32: Use WIN_GetRectangles where possible instead of accessing the window structure. 2010-09-07 14:55:42 +02:00
Alexandre Julliard 7295b6746d user32: Add support for fetching window rectangles relative to various origins. 2010-09-07 14:31:30 +02:00
Dmitry Timoshkov 38b8805c0c user32: Add a bunch of GetWindowPlacement() tests, fix some simple cases. 2010-09-01 17:07:35 +02:00
Dylan Smith 9f32d6d6a9 user32: Prevent resize of minimized windows from SetWindowPos. 2010-07-22 12:57:04 +02:00
Alexandre Julliard b6765134a3 user32: The Z-order of owned windows doesn't depend on them having the WS_POPUP style. 2010-04-13 21:10:00 +02:00
Alexandre Julliard adf9dcd6a7 user32: Fix Z-order handling of windows that have a top-most owner. 2010-02-19 13:05:08 +01:00
Alexandre Julliard df3e5a8762 user32: Reimplement MapWindowPoints16 and move it to wnd16.c. 2009-12-22 13:48:24 +01:00
Ilya Shpigor e6f0404076 user32: Fix switching focus to parent after child hiding. 2009-11-05 14:45:33 +01:00
Alexandre Julliard 4bb95f4d0f user32: Use the generic handle functions for windows too. 2009-10-12 17:07:04 +02:00