Commit Graph

63 Commits

Author SHA1 Message Date
Zhiyi Zhang 92a8c69194 user32: Fix memory leaks.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-01 10:10:06 +01:00
Alexandre Julliard 9cc9236556 user32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-21 15:15:38 +02:00
Zebediah Figura 73b50a24e7 user32: Replace the minimize box with a restore box when the window is minimized.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-20 09:19:17 +01:00
Zebediah Figura c45f60450a user32: Allow clicking the restore and maximize boxes for on minimized windows.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-19 20:51:19 +01:00
Zebediah Figura 3765b3307e user32: Paint title bars for minimized windows.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-19 20:51:19 +01:00
Zebediah Figura 23f26266ef user32: AdjustWindowRect() shouldn't ignore WS_MINIMIZE.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-19 20:51:19 +01:00
Zebediah Figura ed0eaecf17 user32: Correctly calculate the client size of a minimized window.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-19 20:51:19 +01:00
Alexandre Julliard 300217e38b user32: Implement AdjustWindowRectExForDpi().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 17:03:13 +02:00
Alexandre Julliard 77013e9796 user32: Reimplement AdjustWindowRectEx using NONCLIENTMETRICSW.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 17:03:13 +02:00
Alexandre Julliard 9c225fc3f9 user32: Fix position of the small icon in the caption bar.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-13 14:34:25 +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
Huw Davies 9c9c03046f user32: Use WS_MINIMIZE instead of WS_ICONIC.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-30 21:30:45 +01:00
Piotr Caban 1c73fcdbcb user32: Fix DefWindowProc behavior on WM_NCRBUTTONDOWN message.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 16:38:31 +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 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
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 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
Alex Henrie 9a28e35064 user32: Don't put a default icon on modal dialogs.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-15 16:38:30 +09:00
Alexandre Julliard 5095ee32af user32: Fix WS_EX_DLGMODALFRAME handling in AdjustWindowRect and add more tests.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-07 22:30:56 +09:00
Mark Harmstone 27bffea148 user32: Specify size for default window icon in NC_IconForWindow. 2015-08-03 11:00:40 +02:00
Piotr Caban 27374064b6 user32: Make it possible to activate a window with parent and no WS_CHILD flag in WS_NCLBUTTONDOWN function. 2014-04-02 19:06:09 +02:00
André Hentschel bdc9b147b9 user32: Use boolean return values in boolean functions. 2014-02-04 11:15:37 +01:00
Frédéric Delanoy 57d7f74d34 Assorted spelling fixes. 2013-11-21 19:44:46 +01:00
Alexandre Julliard 209d1a86d2 user32: Delay creation of the 55AA pattern brush until it's needed. 2013-10-16 17:23:22 +02:00
Ken Thomases 029aec19ff user32: Remove dead code for suppressing menu drawing. 2013-07-27 11:50:12 -05:00
Alexandre Julliard 094251496c user32: Center the icon in the caption bar. 2013-06-17 19:30:47 +02:00
Alex Henrie c412d6f521 user32: Minimize and maximize boxes can only appear when WS_SYSMENU is set. 2012-07-17 16:22:32 +02:00
Austin English 6f40cb83e9 user32: Make a few more functions hotpatchable. 2012-04-30 20:03:27 +02:00
Marcus Meissner 626d0b75ba user32: Remove duplicated call to GetSystemMenu (Coverity). 2012-02-20 11:38:52 +01:00
Alexandre Julliard 5d1a147163 user32: Add mouse tracking on caption right-clicks to avoid messing with the capture. 2012-02-15 16:27:12 +01:00
Alexandre Julliard 174d2f6d72 user32: Use the correct alpha for the title bar gradient and simplify the mesh. 2011-11-30 14:33:47 +01:00
Alexandre Julliard 299f2b354e user32: Make sure AdjustWindowRect and WM_NCCALCSIZE yield the same result for WS_EX_DLGMODALFRAME windows. 2010-10-12 11:28:51 +02:00
Alexandre Julliard 0df8855b20 user32: Use screen coordinates for hittest checking to handle RTL windows correctly. 2010-09-24 15:45:54 +02:00
Alexandre Julliard deb8309760 user32: Fix initial computation of client area in WM_NCCALCSIZE for RTL windows. 2010-09-24 15:45:54 +02:00
Alexandre Julliard 5c6a1f776a user32: Add support for right-to-left menus. 2010-09-22 20:31:52 +02:00
Alexandre Julliard 4858c54a8e user32: Avoid direct accesses to the window structure in NC_HandleNCHitTest. 2010-09-08 13:19:04 +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 c5bf4976f1 user32: Pass the window styles to NC_GetInsideRect instead of accessing the window structure. 2010-09-07 14:33:13 +02:00
Alexandre Julliard 7ea98f680d user32: Check the active window instead of the foreground to show/hide owned popups. 2010-05-26 10:39:01 +02:00
Alexandre Julliard 8aa83d326a user32: Make user.exe into a stand-alone 16-bit module. 2009-12-24 12:15:12 +01:00
Rico Schüller a679b4e3af user32: Add argument check for PTITLEBARINFO in GetTitleBarInfo(). 2009-11-13 11:52:25 +01:00
Alexandre Julliard 4bb95f4d0f user32: Use the generic handle functions for windows too. 2009-10-12 17:07:04 +02:00
Alexandre Julliard 13ca78cf1a user32: Use explicit prototypes for function pointers. 2009-09-09 13:12:38 +02:00
Dmitry Timoshkov 07a002f3b4 user32: Send the same lParam with WM_SYSCOMMAND/SC_CLOSE as was received with WM_NCLBUTTONDOWN. 2009-09-09 12:18:39 +02:00
Damjan Jovanovic 1603a51d4e user32: Handle NULL rectangles in WM_NCCALCSIZE. 2008-11-18 15:52:00 +01:00
Andrew Talbot afc95d4ac3 user32: Remove unneeded address-of operators from array names. 2008-07-14 11:50:19 +02:00
Andrew Talbot 5806e4b504 user32: Remove unneeded address-of operators from function names. 2008-07-07 12:31:54 +02:00
Alexandre Julliard fa677c7f72 user32: Forward all WM_SYSCOMMAND messages to the driver, not only moves and resizes. 2008-04-10 15:58:43 +02:00
Alexandre Julliard 806d08c206 user32: Get rid of the debug mark option in the system menu. 2008-04-08 12:20:04 +02:00
Alexandre Julliard 7dfc5184e0 user32: Cosmetic fixes to the About dialog. 2008-03-27 13:47:57 +01:00