Commit Graph

118 Commits

Author SHA1 Message Date
Nikolay Sivov a44a608378 comdlg32: Take nMaxFile into account when converting A->W.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:28:11 +01:00
Nikolay Sivov b47de18ce1 comdlg32: Use GetPropW() to get to file dialog data.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 13:57:36 +01:00
Nikolay Sivov c23a91cb63 comdlg32: Consolidate file dialog initialization to avoid duplication.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 13:57:36 +01:00
Nikolay Sivov aef84332a2 comdlg32: Expand initial directory path for file open dialog.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-21 13:57:36 +01:00
Alex Henrie e07d20f3f3 comdlg32: Don't crash if an IShellFolder could not be created.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 22:46:58 +01:00
Alex Henrie bd1b3c104e comdlg32: Use localized "Path does not exist" string.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 22:46:57 +01:00
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
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
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
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
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
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
Joachim Priesner c5ad37baf0 comdlg32: File dialog: Append multi-part extensions like .abc.def. 2015-06-05 14:32:47 +09:00
Francois Gouget 99f0f3a7e1 comdlg32: Remove unneeded NONAMELESSSTRUCT directives. 2015-03-09 22:06:24 +09:00
Michael Stefaniuc 0867e7fe78 comdlg32: Remove an always true if check (PVS-Studio). 2014-11-26 17:26:51 +01:00
Alexandre Julliard 2b40148e1e comdlg32: Use PathAddBackslash to avoid a compiler warning. 2014-10-28 14:33:17 +09:00
André Hentschel c4747f46cf comdlg32: Remove duplicate code (PVS-Studio). 2014-10-28 14:06:02 +09:00
Frédéric Delanoy 2e5cb7aac8 Assorted spelling/grammar fixes. 2014-04-30 18:34:20 +02:00
Frédéric Delanoy 3e3efd1e1b comdlg32: Use BOOL type where appropriate. 2013-10-23 11:21:15 +02:00
Frédéric Delanoy 8e7abd00a8 comdlg32: Use BOOL type where appropriate. 2013-10-11 11:05:04 +02:00
Alexandre Julliard 6a40d65ba8 comdlg32: Scale the shell folder list in the open dialog with the font size. 2013-05-29 18:09:00 +02:00
Daniel Jelinski 9c7a01c74b comdlg32: Load ComboBoxEx before creating dialogs that use it. 2013-05-06 11:39:15 +02:00
Andrew Talbot c8092a04ce comdlg32: Indentation fix. 2012-12-17 11:47:39 +01:00
Huw Davies 7a2d68abc8 comdlg32: Use a ComboBoxEx control for the filename if the structure size is not the nt40 version size. 2012-09-25 19:25:21 +02:00
Huw Davies 01a084383c comdlg32: Use the window handle to send messages to the filename control. 2012-09-25 18:11:21 +02:00
Huw Davies 4c47385ea5 comdlg32: Add structure size checks. 2012-09-21 17:08:13 +02:00
Huw Davies d26335497e comdlg32: Move all of the win 3.1 style functionality into the same file. 2012-09-19 13:06:35 +02:00
Michael Stefaniuc bdaf2e9881 comdlg32: Use a helper to detect the need for win16 looks. 2012-07-27 17:05:31 +02:00
Thomas Faber bbf2cce160 comdlg32: Do not modify dialog resource directly. 2012-07-20 14:02:31 +02:00
Bruno Jesus 8c5cf7e25f comdlg32: Fix NULL lpstrFile uses in FILEDLG95_OnOpen. 2012-06-19 22:03:21 +02:00
Alex Henrie f0b274bada comdlg32: Correctly handle filters with invalid extensions in Save As dialogs. 2012-01-25 11:53:44 +01:00
Alex Henrie 7a34094e6e comdlg32: Correctly handle filters with multiple file extensions in Save As dialogs. 2012-01-23 17:44:11 +01:00
Ken Thomases c2f3c1114f comdlg32: Fix a leak. 2011-12-20 10:14:28 +01:00
Alex Henrie 6e5bba1b60 comdlg32: Widen buffer to accomodate Catalan translation. 2011-12-16 12:07:44 +01:00
Alex Henrie b5b739d5f3 comdlg32: Correct title of "Save As" dialog. 2011-12-09 21:15:34 +01:00
Frédéric Delanoy f932abf326 dlls: Assorted spelling fixes. 2011-08-01 18:26:27 +02:00
David Hedberg d441d3b8ba comdlg32: Implement SetDefaultFilename. 2011-05-25 13:36:30 +02:00
David Hedberg 9c1f56f67e comdlg32: Factor out filename string splitting code. 2011-04-01 12:42:13 +02:00
David Hedberg 7f5ccd3262 comdlg32: Factor out some path validating code from FILEDLG95_OnOpen. 2011-04-01 12:42:08 +02:00
David Hedberg fcb169fe36 comdlg32: Factor out some path building code from FILEDLG95_OnOpen. 2011-04-01 12:42:02 +02:00
Marcus Meissner 0bd55f9df1 comdlg32: Removed useless NULL check (Coverity). 2011-03-15 17:14:07 +01:00
Wolfram Sang 5cb4c55335 comdlg32: Filedlg should not add extension if it contains a glob. 2011-01-31 13:01:07 +01:00
Eryk Wieliczko bd0fe7d26b comdlg32: GetSaveFileName: Don't append .* extension. 2010-11-02 14:09:05 +01:00
Marcus Meissner 5b09820d7c comdlg32: Fixed bad size to GetModuleFilenameW. 2010-10-25 12:41:42 +02:00
Damjan Jovanovic 7ccf6c28b3 comdlg32: Fix a stack overflow. 2010-10-08 11:56:45 +02:00
Andrew Eikum 4b93548df1 comdlg32: Store and use save/open dialogs' most-recently-used data. 2010-07-24 11:18:11 +02:00
Juan Lang 6f42f596e1 comdlg32: No and escape are equivalent. 2010-06-07 12:22:08 +02:00