Commit Graph

233 Commits

Author SHA1 Message Date
Nikolay Sivov 30db9fa830 comctl32/propsheet: Use wide string literals.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-04 17:32:09 +02:00
Alexandre Julliard e4e2e8e551 comctl32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-29 11:38:38 +02:00
Nikolay Sivov 71004a825f comctl32/propsheet: Avoid posting uninitialized data (Valgrind).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46691
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-25 12:51:21 +01:00
Dmitry Timoshkov 4ee173dfdd comctl32: Don't ignore page creation error for a non-modal propery sheet.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-18 20:49:56 +01:00
Nikolay Sivov db2a3b7028 comctl32: Use ARRAY_SIZE() macro.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 09:16:27 +01:00
Nikolay Sivov 429705eaf3 comctl32/propsheet: Implement PSPCB_ADDREF/PSPCB_RELEASE notifications.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-02 10:34:00 +01:00
Nikolay Sivov a3aa217f03 comctl32/propsheet: Enforce minimal PROPSHEETPAGE structure size when creating a page.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-02 10:33:58 +01:00
Nikolay Sivov 83cde06937 comctl32/propsheet: Implement PSM_SETHEADERSUBTITLE.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 21:39:28 +01:00
Nikolay Sivov ce9c06be2b comctl32/propsheet: Implement PSM_SETHEADERTITLE.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 21:39:28 +01:00
Nikolay Sivov 1a750f7b10 comctl32/propsheet: Add helpers to do string duplication.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 21:39:28 +01:00
Peter Hater a6661ba9ad comctl32/propsheet: Added PSM_INSERTPAGE implementation.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 11:37:01 +01:00
Nikolay Sivov 34dd326060 comctl32/propsheet: Only use header bitmap when asked for it.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 10:35:06 +01:00
Nikolay Sivov 6eafebedb8 comctl32/propsheet: Force wizard header if any of pages has title/subtitle.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-01 10:35:03 +01:00
Nikolay Sivov 9d404ddac6 comctl32/propsheet: Double size of a template buffer passed to PSCB_PRECREATE.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-13 14:51:17 +01:00
Michael Stefaniuc 65a2e59a78 comctl32: Avoid using CopyRect() on RECT structs.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-24 21:10:32 +09:00
Michael Stefaniuc 903ea19122 comctl32: Use SetRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 23:23:36 +09:00
Stefan Dösinger 4e2d25c7cd comctl32: Re-enable the parent before destroying the dialog.
Prevent 1602 AD from minimizing when the multiplayer dialog is
closed. When DestroyWindow is called, user32 tries to find a window to
activate, finds the main game window disabled and decides to go to the
desktop. Wined3d will help this process by minimizing the game out of
the way.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-02 23:02:23 +09:00
Francois Gouget c04cc70f7d comctl32: Remove unneeded NONAMELESSSTRUCT directives. 2015-03-09 22:06:23 +09:00
Huw Davies 433df0d5d8 comctl32: Enable the appropriate wizard buttons before sending DM_SETDEFID. 2014-10-30 23:09:52 +09:00
Frédéric Delanoy 57d7f74d34 Assorted spelling fixes. 2013-11-21 19:44:46 +01:00
Ričardas Barkauskas 2c8ea6ebff comctl32: Avoid code duplication by reusing PROPSHEET_GetPageIndex. 2012-12-26 18:23:04 +01:00
Ričardas Barkauskas 379d492b12 comctl32: Use index value if property sheet page isn't found. 2012-12-26 18:23:04 +01:00
Hans Leidekker 232a44edaf comctl32: Use the dialog template caption as default propsheet title. 2012-10-29 14:40:13 +01:00
Piotr Caban 21898b2fba comctl32: Remove property sheet page that can't be initialized. 2012-08-29 20:13:48 +02:00
Nikolay Sivov ace41e9264 comctl32: Properly disable redraw on tab control. 2012-05-17 10:18:36 +02:00
André Hentschel 9e0517ac6d comctl32: Also free pszHeaderTitle and pszHeaderSubTitle in DestroyPropertySheetPage. 2011-12-29 17:56:51 +01:00
Francois Gouget 6deccab6c9 comctl32: Property sheets must be able to redraw themselves even if no page is selected. 2011-09-06 12:23:55 +02:00
André Hentschel f931f479bc comctl32: Remove dead increments (clang). 2011-07-28 11:28:51 +02:00
Alexandre Julliard a37e5975dc comctl32/propsheet: Fix incorrect use of the ScreenToClient function. 2010-10-05 14:04:01 +02:00
Detlef Riekenberg 51db7f0a15 comctl32: Dump a parameter in a TRACE. 2010-10-05 12:10:17 +02:00
Dmitry Timoshkov 09539e4219 comctl32: Postpone setting the property sheet focus until the tab control is initialized. 2010-10-05 12:07:38 +02:00
Dmitry Timoshkov 1bf5e12e95 comctl32: Make sure that the focus is set to an existing property sheet button. 2010-07-22 16:07:54 +02:00
Michael Stefaniuc 02b4103868 comctl32: Avoid a potential NULL pointer dereference in a TRACE. 2010-05-25 13:27:33 +02:00
Mikhail Maroukhine 6443d87543 comctl32: Fix compiler warnings. 2010-03-29 12:10:00 +02:00
Michael Stefaniuc 223603cc1c comctl32: Use IS_INTRESOURCE instead of HIWORD to check a resource. 2010-01-26 12:13:51 +01:00
Michael Stefaniuc 9dd502a332 comctl32: Remove some explicit LPARAM/WPARAM casts. 2009-12-28 12:27:14 +01:00
Ričardas Barkauskas a8f89a2ffa comctl32/propsheet: Test and fix for crash processing PSM_INDEXTOHWND with no longer valid handle. 2009-10-19 14:44:57 +02:00
Jan de Mooij 2f8e5da90f comctl32/propsheet: Update position of hidden buttons too. 2009-09-01 17:37:12 +02:00
Andrew Eikum ac34e22ef3 comctl32: Correctly assign focus and default button in property sheet wizards. 2009-08-14 11:27:55 +02:00
Andrew Eikum 4a14ed43fa comctl32: Don't pass unrelated control to UnChanged. 2009-08-14 11:27:39 +02:00
Michael Stefaniuc da6d7920de comctl32: Remove superfluous pointer casts. 2009-02-13 13:00:25 +01:00
Vitaliy Margolen c80fdb881a comctl32: Use style to distinguish between embedded and standalone propsheets.
Some programs alter propsheet style in the callback during creation to make
"embedded" propsheets. PSH_MODELESS controls modal/modeless operation only.
2009-02-09 13:21:34 +01:00
Vitaliy Margolen edbea606f9 comctl32: Fix propsheet size calculation. 2009-02-02 15:21:45 +01:00
Michael Stefaniuc 62e17fa8c4 comctl32: Do not cast zero. 2008-11-04 11:26:22 +01:00
Michael Stefaniuc b12fbe1630 comctl32: HANDLE/HGLOBAL are basically just void pointers. No casts to other pointers are needed. 2008-10-29 11:52:22 +01:00
Michael Stefaniuc 6060ca9438 comctl32: LockResource() returns a LPVOID so don't cast its return value. 2008-10-24 14:24:59 +02:00
Michael Stefaniuc b723e6f6b6 comctl32: Remove the superfluous casting of the LPVOID returned by Alloc(). 2008-10-24 14:24:59 +02:00
Vincent Povirk 2893294f4b comctl32: Disable owner of modal property sheets before creating the dialog. 2008-07-09 12:40:08 +02:00
Andrew Talbot 369d414d59 comctl32: Remove unused variables. 2008-04-14 12:42:36 +02:00
Rob Shearman 45f13cefc4 comctl32: Fix local variable shadowing in load_string by moving len to the block in which it is actually used. 2008-02-25 12:02:15 +01:00