Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi openpicturedialog .. kleines Problemchen (https://www.delphipraxis.net/8030-openpicturedialog-kleines-problemchen.html)

DonManfred 17. Feb 2010 14:45

Re: openpicturedialog .. kleines Problemchen
 
Ich habe das gleiche Problem und bin bei der Suche hier auf diesen thread gestossen...
Unter Windows 7 scheint beides nicht zu fruchten; also weder OpenDialog.Filename auf '' zu setzen noch das ganze dynamisch zu erzeugen. Der scheint irgendwie den letzten benutzten Pfad zu verwenden...

Bei mir auf dem Rechner (XP) klappt das wunderbar, bei meinem Chef (win7) klappt es nicht.

Irgend welche tips?

jfheins 17. Feb 2010 15:19

Re: openpicturedialog .. kleines Problemchen
 
Neues Feature von Windows 7:
Zitat:

lpstrInitialDir
Pointer to a NULL terminated string that can specify the initial directory. The algorithm for selecting the initial directory varies on different platforms.

Windows 7:

1. If lpstrInitialDir has the same value as was passed the first time the application used an Open or Save As dialog box, the path most recently selected by the user is used as the initial directory.
2. Otherwise, if lpstrFile contains a path, that path is the initial directory.
3. Otherwise, if lpstrInitialDir is not NULL, it specifies the initial directory.
4. If lpstrInitialDir is NULL and the current directory contains any files of the specified filter types, the initial directory is the current directory.
5. Otherwise, the initial directory is the personal files directory of the current user.
6. Otherwise, the initial directory is the Desktop folder.


Windows 2000/XP/Vista:

1. If lpstrFile contains a path, that path is the initial directory.
2. Otherwise, lpstrInitialDir specifies the initial directory.
3. Otherwise, if the application has used an Open or Save As dialog box in the past, the path most recently used is selected as the initial directory. However, if an application is not run for a long time, its saved selected path is discarded.
4. If lpstrInitialDir is NULL and the current directory contains any files of the specified filter types, the initial directory is the current directory.
5. Otherwise, the initial directory is the personal files directory of the current user.
6. Otherwise, the initial directory is the Desktop folder.
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:46 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz