Commit Graph

52 Commits

Author SHA1 Message Date
Alexandre Julliard 440484fc07 user32: Switch to the window DPI awareness for MDI scrolling.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-28 12:21:28 +02:00
Michael Stefaniuc e8411d22d5 user32: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 16:02:53 +02:00
Andrew Eikum c1c3198aa4 user32: Don't always insert menu items during WM_MDISETMENU.
MSDN says WM_MDISETMENU shouldn't change the frame menu if it is given
as NULL. Tests bear that out. Some other tests are included to show we
haven't broken behavior on e.g. initially maximized MDI child windows.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-08 18:41:29 +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 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
Dmitry Timoshkov 00b68720bf user32: Change value of WM_MDICALCCHILDSCROLL to 0x003f.
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-04-20 22:49:42 +09:00
Michael Stefaniuc 08821df92c user32: Use wine_dbgstr_rect() to trace a RECT.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-19 21:06:10 +09:00
Andrew Eikum 76f1c254a2 user32: Grammar fix.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 15:16:54 +09:00
Jacek Caban aa5762d5c2 user32: Ignore WM_CHILDACTIVATE on disabled windows in DefMDIChildProc.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-27 00:13:29 +09:00
Michael Müller 3c888a74c5 user32: Preserve beginning of extra data for MDI windows.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-26 19:54:04 +09:00
Bruno Jesus ecd814cca5 user32: Don't add scroll bars to mdiclient if the window style doesn't allow it.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-20 19:26:16 +09:00
Alex Henrie 5b53c0b88b user32: Avoid double initialization.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 21:59:08 +09:00
Alex Henrie 5579967c53 user32: Use the window class icon if the MDI child doesn't have its own. 2015-05-14 00:06:58 +09:00
Michael Stefaniuc 63174c2f36 user32: IDI_WINLOGO is already an int resource (PVS-Studio). 2015-02-18 16:09:05 +09:00
Frédéric Delanoy 77ee42fd33 user32: Use BOOL type where appropriate. 2013-11-05 11:15:06 +01:00
Sergey Guralnik e90418d31c user32: Bring reference MDI child to bottom when switching to next. 2013-06-06 10:42:51 +02:00
Dmitry Timoshkov a859e73d5f user32: Use symbolic names for values returned by WM_MENUCHAR handler. 2011-04-11 12:09:43 +02:00
Marcus Meissner 6e077e0bc0 user32: Get MDI icon as close the "small icon" as possible. 2011-01-28 12:03:50 +01:00
Alexandre Julliard 9b693ddadb user32: Use WIN_GetRectangles where possible instead of mapping coordinates explicitly. 2010-09-07 15:11:24 +02:00
Dylan Smith c51b1e6db6 user32: DefMDIChildProc sends WM_MDINEXT with active child handle. 2010-07-21 17:38:37 +02:00
Marcus Meissner 4d96ffb52b user32: Remove useless NULL check (Coverity). 2010-01-06 17:22:31 +01:00
Michael Stefaniuc 6f3b494463 user32: Remove some explicit LPARAM/WPARAM casts. 2009-12-28 12:27:13 +01:00
Alexandre Julliard d081a7352c user32: Simplify window procedure allocation for the builtin classes. 2009-12-18 12:39:13 +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 314d2c3e1c user32: Add a Wow handler for the mdi client class. 2009-12-16 13:22:08 +01:00
Michael Stefaniuc 214b40b109 user32: Remove superfluous pointer casts. 2009-03-02 12:11:38 +01:00
Dmitry Timoshkov 5307a75c42 user32: Partially revert 499c26ce66.
This part of the patch really has nothing to do with an idea the patch
aimed to achieve.
2008-08-27 13:21:20 +02:00
Dmitry Timoshkov 939c7f9c6b user32: Make sure that we send proper notifications in all cases. 2008-05-12 11:42:54 +02:00
Alexandre Julliard b383690f52 user32: Added stubs for Cascade/TileChildWindows. 2008-03-05 19:22:23 +01:00
Francois Gouget 44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01:00
Alexandre Julliard bfe88a00f8 user32: Store the builtin class names in Unicode. 2007-11-01 12:55:00 +01:00
Jason Edmeades ca710edc34 user32: MDI tile and cascade should not resize non-resizable windows. 2007-07-24 11:27:55 +02:00
Jason Edmeades 1c07a97ffd user32: Correct trace to log calculated values rather than uninitialized ones. 2007-07-24 11:26:46 +02:00
Dmitry Timoshkov ea2613fe61 user32: Make MDI get_client_info checks more strict. 2007-06-20 15:10:58 +02:00
Dmitry Timoshkov 4d8f84cbdd user32: When inserting a menu item make sure that MDI system buttons stay on the right side. 2007-06-20 15:10:58 +02:00
Dmitry Timoshkov 9a295e7f87 user32: Fix some compilation warnings in 64-bit mode. 2007-05-30 13:24:27 +02:00
Dmitry Timoshkov 3c9e7a7f33 wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility. 2007-05-25 20:37:56 +02:00
Andrew Talbot 6030e4d549 user32: Exclude unused headers. 2007-05-21 13:36:13 +02:00
Anatoly Lyutin 86aa0491d6 user32: mdi: Fix switch with wParam in WM_SYSCOMMAND processing. 2007-05-16 15:47:55 +02:00
Huw Davies 7a43e79087 user32: Use a window's icon in preference to its class icon. 2007-03-17 19:50:56 +01:00
Dmitry Timoshkov cecd205f13 user32: Restore erroneously removed chunk of code. 2007-03-16 11:18:23 +01:00
Andrew Talbot 3ad92b0c25 user32: Replace const pointer parameters with correct pointers to const. 2007-03-06 22:26:46 +01:00
Dmitry Timoshkov 474a8f5357 user32: Activate an MDI child on WM_SETFOCUS as well as on WM_CHILDACTIVATE. 2007-02-13 12:08:38 +01:00
Dmitry Timoshkov 65681a0e18 user32: Add the tests for minimize/restore MDI child sequence, fix some failures. 2007-02-05 21:04:20 +01:00
Peter Oberndorfer 127512c938 user32: Only try to remove the MDI document icon from the frame menu when needed. 2007-01-23 11:38:03 +01:00
Dmitry Timoshkov 499c26ce66 user32: Remove redundant visibility checks of a maximized MDI child, add an explanation why we do that. 2007-01-15 12:44:49 +01:00
Dmitry Timoshkov f6d5368da7 user32: Simplify some maximized MDI child checks. 2007-01-15 12:44:35 +01:00
Dmitry Timoshkov d63fd7911f user32: Remove MDI_AugmentFrameMenu call from WM_MDICREATE handler. 2007-01-15 12:44:28 +01:00
Dmitry Timoshkov d3d030eb88 user32: Restore old WM_SIZE handler in mdi child. 2007-01-08 12:53:06 +01:00
Dmitry Timoshkov d57dc9da0a user32: Fix some failures in the MDI message test. 2007-01-04 21:12:26 +01:00