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/)
-   -   Opendialog bei Ok-Button nicht schliessen (https://www.delphipraxis.net/185366-opendialog-bei-ok-button-nicht-schliessen.html)

idefix2 5. Jun 2015 11:48

AW: Opendialog bei Ok-Button nicht schliessen
 
Danke für die Denkhilfe.
Sendmessage ist die Lösung:

Delphi-Quellcode:
function GetFilenameFromOpenDialog (d: TOpenDialog): string;
const CDM_GETFILEPATH=1125;
var h: integer;
begin
setlength(result,256);
h:=sendmessage(getparent(d.Handle), CDM_GETFILEPATH, 256, integer(@result[1]))-1;
if h<0 then h:=0;
setlength(result,h);
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:57 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