Huw Davies
9933a0fc86
user32: Initialize length before calling GetWindowPlacement().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-30 21:30:45 +01:00
Zebediah Figura
292450b07f
user32: Calculate a window's minimized size even if it's already minimized.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-18 20:43:35 +02:00
Alexandre Julliard
5b9c69b93f
user32: Copy the bits of child windows when the parent has a surface.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 11:05:16 +02:00
Alexandre Julliard
4e13c06f3b
user32: Add a helper function for copying bits from a window surface.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 11:05:15 +02:00
Alexandre Julliard
4f88a57ce7
server: Return the top surface window even when not using OpenGL.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 11:05:15 +02:00
Austin English
3b9e49b4d8
user32: Add LogicalToPhysicalPoint/PhysicalToLogicalPoint stubs.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-19 20:26:34 +02:00
Fabian Maurer
d594ba3322
user32: Only send position-change messages when needed.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-20 10:43:15 +01:00
Fabian Maurer
997d4ef44f
user32: Send WM_NCPAINT and WM_ERASEBKGND when window is shown.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-20 10:42:37 +01:00
Rodrigo Rivas Costa
fbd9ed0dee
user32: Fix error handling in EndDeferWindowPos.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-17 20:53:53 +01: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
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