Commit Graph

682 Commits

Author SHA1 Message Date
Józef Kucia 1707df3da2 comdlg32: Delay OleInitialize() until after file dialog window is created.
This fixes a problem exposed by commit
f65e04770d.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 20:40:13 +01:00
Józef Kucia 5dda6495eb comdlg32/tests: Add test for OLE initialization in file dialogs.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 20:40:13 +01:00
Nikolay Sivov 6c4aaf776f comdlg32: Always use original Open File dialog template.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 10:37:08 +01:00
Michael Stefaniuc eff2ecc39a comdlg32: Avoid some superfluous pointer casts.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-08 13:56:02 +01:00
Alistair Leslie-Hughes 3126d9ca4c comdlg32/tests: Test when a directory is passed to OpenFileName Dialog.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-27 18:06:29 +02:00
Bruno Jesus 5809118892 comdlg32: Avoid crash when a path is passed into Open File Dialog.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-27 18:06:23 +02:00
Carlo Bramini a1b0d92587 comdlg32: Uses SetDlgItemInt() to simplify the code.
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:48:47 -07:00
Alistair Leslie-Hughes 326a9ea137 comdlg: Select all text when enter is pressed.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-09 20:20:53 +09:00
Alistair Leslie-Hughes b11d7f7482 comdlg32: Clear the filename text on OPEN_BROWSE.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-09 20:20:53 +09:00
Nikolay Sivov 384ece4d7e comdlg32/itemdlg: Fix setting NULL file name (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-28 21:38:13 +09:00
Lauri Kenttä c851ecca2b comdlg32: Avoid repeated GlobalLock etc in filedlg.
Signed-off-by: Lauri Kenttä <lauri.kentta@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 12:11:16 +09:00
Lauri Kenttä f99da3f3a1 comdlg32: Avoid generating filenames twice in filedlg.
Signed-off-by: Lauri Kenttä <lauri.kentta@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 12:11:02 +09:00
Lauri Kenttä 86a993ea3c comdlg32: Init clipboard format only once in filedlg.
Signed-off-by: Lauri Kenttä <lauri.kentta@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 12:10:20 +09: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
Michael Stefaniuc 4e7272f087 comdlg32: Avoid using CopyRect().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 22:16:35 +09:00
Michael Stefaniuc db134bbd5a comdlg32/tests: Use wine_dbgstr_rect() to print RECTs.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-10 20:34:03 +09:00
Pierre Schweitzer d288d8d333 comdlg32: Check for overflow before dereferencing.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 18:30:45 +09:00
Michael Stefaniuc 69f6493a8c comdlg32: 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-21 18:42:25 +09:00
Nikolay Sivov be27c23df9 comdlg32/tests: Simplify a test using todo_wine_if().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 12:17:47 +09:00
Nikolay Sivov 2f6393bfa0 comdlg32: Don't use BOOL constants for regular integer type.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-11 19:54:15 +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
Nikolay Sivov 1a7121b327 comdlg32/fontdlg: Remove dead assignment (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 10:46:40 +01:00
Nikolay Sivov 9f5260300d comdlg32/fontdlg: Fix string format for sizes added to listbox.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 10:46:39 +01:00
Nikolay Sivov daaa083404 comdlg32/fontdlg: Allow font sizes outside of defaults set.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 10:46:39 +01:00
Nikolay Sivov a48d96843c comdlg32/fontdlg: Limit text length user can type in as font point size.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 10:46:38 +01: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
Vincent Povirk d0fac61c6d comdlg32: Initially focus filename text box.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 14:44:53 +09:00
Vincent Povirk 30ac0f5a66 comdlg32: Add ES_AUTOHSCROLL style to filename text box.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 14:41:40 +09:00
André Hentschel 03bf3cac66 comdlg32/tests: Disable test which crashes on Win10.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-16 21:06:20 +09:00
Vincent Povirk 34d57e3621 comdlg32: Implement radio button lists in item dialog. 2015-09-14 16:47:51 +09:00
Vincent Povirk 9068f2d10c comdlg32: Return success from IFileDialogCustomize::MakeProminent. 2015-09-14 16:21:26 +09:00
Vincent Povirk 4270a8a4dc comdlg32: Return success from IFileDialog2::AddPlace. 2015-09-14 16:21:23 +09:00
Vincent Povirk 3fc57e7b49 comdlg32: Remove fixme from EnableOpenDropDown. 2015-09-14 16:21:21 +09:00
Vincent Povirk bbe009778e comdlg32: Fix ignored out parameter. 2015-09-14 16:21:18 +09:00
Vincent Povirk 6056a3f163 comdlg32: Show open dropdown menu on button press. 2015-08-28 21:24:37 +09:00
Vincent Povirk bc0abc2369 comdlg32: Show and hide the open dropdown menu dynamically. 2015-08-28 21:24:15 +09:00
Vincent Povirk c5c5163e61 comdlg32: Implement open dropdown menu. 2015-08-28 21:23:26 +09:00
Vincent Povirk 836f06f6f9 comdlg32: Add WS_CLIPSIBLINGS to controls in the item dialog. 2015-08-27 21:43:46 +09:00
Vincent Povirk d3163241af comdlg32: Partially implement IFileDialogCustomize::EnableOpenDropDown.
This builds a menu but cannot display it yet.
2015-08-19 20:19:56 +09:00
Vincent Povirk 8d8e75849f comdlg32: Implement SetControlItemState for combo boxes. 2015-08-19 20:19:56 +09:00
Vincent Povirk 068a6c7a5f comdlg32: Implement SetControlItemState for menu controls.
This required some rethinking because menus and combo boxes don't
provide a way to "hide" items, just remove them, and native always
shows items in the order they were added even when hidden and shown.
2015-08-19 20:19:56 +09:00
Vincent Povirk b206287c91 comdlg32: Implement overwrite check in item dialog. 2015-08-17 14:47:05 +09:00
Vincent Povirk 3ec84397c9 comdlg32: Add test for IFileDialogEvents::OnOverwrite. 2015-08-17 14:47:01 +09:00
Nikolay Sivov 9da369b455 comdlg32: Remove some casts. 2015-08-03 10:57:55 +02:00
Nikolay Sivov ae2794eac9 comdlg32: Remove browser border for common item dialog. 2015-08-03 10:57:50 +02:00
Nikolay Sivov da8fd05251 comdlg32/tests: Test that different IFileDialogCustomize IIDs return same pointer. 2015-08-03 10:57:30 +02:00
Joachim Priesner c5ad37baf0 comdlg32: File dialog: Append multi-part extensions like .abc.def. 2015-06-05 14:32:47 +09:00
Alex Henrie e4e78b0a83 comdlg32: Remove unused string resource "Borders". 2015-04-29 15:46:13 +09:00
David Hedberg 2afbf9dbbc comdlg32: Only attempt to update the layout if the dialog window exists. 2015-04-01 22:34:20 +09:00
Francois Gouget 99f0f3a7e1 comdlg32: Remove unneeded NONAMELESSSTRUCT directives. 2015-03-09 22:06:24 +09:00