Commit graph

146 commits

Author SHA1 Message Date
Brendan McGrath bbdc50c532 comdlg32: Don't treat cmb1 as the printer list unless in PRINT_SETUP.
This changes WMCommandW to match WMCommandA.
2024-03-12 13:43:41 +01:00
Brendan McGrath 39bd338a62 comdlg32: Use ANSI functions in ANSI WMCommandA. 2024-03-12 13:43:41 +01:00
Brendan McGrath 91207991f2 comdlg32: Populate printer name on the print dialogs.
This will display the name of the selected printer on the Print dialog
and the default printer on the Print Setup dialog
2024-03-12 13:43:41 +01:00
Brendan McGrath 8b7d1a65d0 comdlg32: Add resolutions to PRINTDLG_ChangePrinterW.
This was done in PRINTDLG_ChangePrinterA, but missing from
PRINTDLG_ChangePrinterW
2024-03-12 13:43:41 +01:00
Brendan McGrath 4ec559743d comdlg32: Use values from DeviceCapabilities in combobox.
dpiX,dpiY are the default printer values from the GetDeviceCaps calls.
This causes the item data to be the same for every option in the
combobox.

The item data should reflect the selected values.
2024-03-12 13:43:41 +01:00
Alexandre Julliard c86bb60640 comdlg32: Use nameless unions/structs. 2023-07-10 21:15:55 +02:00
Alexandre Julliard 1250131b0a comdlg32: Use standard va_list instead of __ms_va_list. 2023-02-17 11:25:20 +01:00
Rémi Bernon 6ffef221a1 comdlg32: Call GlobalReAlloc with GMEM_MOVEABLE flag.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53474
2022-11-22 18:27:31 +01:00
Alex Henrie cad9446567 comdlg32: Use standard C functions for memory allocation in printdlg.c.
The big win here is getting rid of the reimplementation of wcsdup.
2022-11-16 10:11:24 +01:00
Eric Pouech 05fef74867 comdlg32: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-09 18:37:32 +01:00
Michael Stefaniuc b97542cef7 comdlg32: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-23 12:37:23 +01:00
Alexandre Julliard 2cfe907584 comdlg32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-29 11:38:38 +02:00
Alex Henrie fedd1cb3d3 comdlg32: Turn several variables into static constants.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-04 16:13:10 +01:00
Nikolay Sivov 7514475c1c comdlg32: Use ARRAY_SIZE macro.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-20 11:40:25 +01:00
Michael Stefaniuc 3ad882ff24 comdlg32: Use InflateRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 17:29:35 +09:00
Nikolay Sivov c8e407da3b comdlg32: Explicitly compare to HRESULT values.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-03 20:04:32 +01:00
Michael Stefaniuc 74007d4405 comdlg32: Remove unused variable assigments (PVS-Studio). 2015-01-13 19:54:02 +01:00
Michael Stefaniuc 51d0345ebd comdlg32: RT_DIALOG is already an INTRESOURCE (PVS-Studio). 2014-11-27 11:43:28 +01:00
Ralf Habacker 2b9d337f6d comdlg32: Update dmFormName when changing paper size in print UI. 2014-11-20 23:40:39 +09:00
Andrey Gusev be367393c9 Assorted typos fixes. 2014-01-13 17:37:42 +01:00
Huw Davies ec37a87e95 comdlg32: Don't call the callback if it's not set. 2013-06-25 18:12:11 +02:00
Dmitry Timoshkov 4986ba35c3 include/commdlg.h: Fix definition of LPPRINTHOOKPROC and LPSETUPHOOKPROC. 2013-05-08 12:45:42 +02:00
Dmitry Timoshkov e0b4b9f63f comdlg32: Add a simple PrintDlgEx implementation which wraps around the PrintDlg one. 2013-04-09 11:59:46 +02:00
Michael Stefaniuc df158e4379 comdlg32: Avoid TRUE:FALSE conditional expressions. 2012-08-13 17:29:13 +02:00
Aric Stewart aefd9b5533 comdlg32: Do not use GetDlgItemText to get combo box text during an CBN_SELCHANGE notification. 2012-07-11 10:12:52 -05:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Detlef Riekenberg 24047e902f comdlg32: Return a device context when requested. 2012-03-27 12:04:30 +02:00
Detlef Riekenberg ecd6f40acb comdlg32: Use a helper to update the devmode handle. 2012-03-27 12:04:01 +02:00
Detlef Riekenberg ce9f046388 comdlg32: Use a helper to get the printer driver info. 2012-03-27 12:02:05 +02:00
Detlef Riekenberg d0f5397b9e comdlg32: Use a helper to get the printer info. 2012-03-27 12:01:12 +02:00
Detlef Riekenberg c2aeac3cc0 comdlg32: Validate more parameters in PrintDlgEx. 2012-03-27 11:59:44 +02:00
Alexandre Julliard 67a0db3c38 comdlg32: Avoid crash when driver name doesn't contain a backslash. 2012-02-24 12:48:00 +01:00
Detlef Riekenberg bea7032687 comdlg32: Exclude the driver path from the result. 2012-02-13 18:37:39 +01:00
Frédéric Delanoy 954e6eba7e comctl32: Avoid hardcoding array lengths. 2011-11-22 10:53:33 +01:00
Francois Gouget 229f7073ec comdlg32: Fix a couple of string resources so their format placeholders can be reordered. 2011-11-21 12:55:47 +01:00
Francois Gouget ed3c9a1eca Assorted spelling fixes. 2011-08-03 14:15:48 +02:00
Frédéric Delanoy f932abf326 dlls: Assorted spelling fixes. 2011-08-01 18:26:27 +02:00
Huw Davies 016b7c53dc comdlg32: When changing printers, only preserve the paper/bin settings if the new printer has the original setting available. 2011-06-22 17:52:45 +02:00
Alexandre Julliard 6d5bfce3ee comdlg32: Fix incorrect use of the ScreenToClient function. 2010-10-05 14:04:15 +02:00
Vitaly Perov dcef05b6f1 comdlg32: Add basic implementation of PrintDlgExA. 2010-09-27 15:01:34 +02:00
Andrew Talbot dc06444314 comdlg32: Constify a variable. 2010-08-16 13:46:28 +02:00
Gerald Pfeifer 4b25c6e6ad comdlg32: Removed unused parameters from PRINTDLG_WMInitDialogW and PRINTDLG_WMInitDialogA. 2010-03-15 13:41:03 +01:00
Gerald Pfeifer f7e292a51e comdlg32: Remove unused wParam parameters from PRINTDLG_WMInitDialog and PRINTDLG_WMInitDialogW. 2010-03-01 11:33:27 +01:00
Detlef Riekenberg aa389201e5 comdlg32: Remove unused code for the Button psh1. 2010-01-07 17:59:57 +01:00
Alexandre Julliard 82016c19ef comdlg32: Don't use the instance of the owner window for dialog boxes. 2009-12-28 12:27:16 +01:00
Michael Stefaniuc db4fab9fc0 comdlg32: Remove some explicit LPARAM/WPARAM casts. 2009-12-28 12:27:14 +01:00
Alexandre Julliard 9e643967ab comdlg32: Reimplement the 16-bit print dialog on top of the 32-bit one.
Stub out the functionality that cannot be supported that way.
2009-11-12 20:15:49 +01:00
Andrew Talbot 764974e59d comdlg32: Constify some variables. 2009-06-10 11:47:58 +02:00
Andrew Talbot 7b1c326016 comdlg32: Fix a typo. 2009-03-04 12:07:03 +01:00
Huw Davies 0806d811ed comdlg32: Set the correct error code if there is no default printer. 2009-01-26 15:13:32 +01:00