Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Windows 10 OpenDialog resizing bug... Date: Mon, 15 Jun 2015 23:17:31 +0200 Lines: 62 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Trace: individual.net MeXAvahtf3Hu0o5fUIhu1AAcsmbcGS+U3PdbMZQ3HpoMRRs1w= Cancel-Lock: sha1:Ri9NME4pQEWPLdJZb2W2KvQTzJo= In-Reply-To: X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 Xref: csiph.com comp.lang.clipper.visual-objects:8212 Hi Jean , i confirm the problem. BTW: The VO StdDlg Class doesnīt make use of the modern Dialogs introduced by Vista. Here is the description why: http://www.tmssoftware.com/site/atbdev6.asp In short: The buildin hook implementation prevents the new OpenDialog from being shown. Hereīs a quick hack that at least shows the new dialog. Itīs the same that VO uses when you e.g. import a mef. --------------------- FUNCTION ShowNewOpenDialog( oOwner ) LOCAL lRet := TRUE AS LOGIC LOCAL sOFN AS _winOPENFILENAME LOCAL pszRes AS PSZ LOCAL hDLL, gpfnGetOpenFileName AS PTR sOFN := memalloc ( _SIZEOF ( _winOPENFILENAME ) ) pszRes := MemAlloc(MAX_LEN) MemCopyString(pszRes, Space(255 ) , MAX_LEN) sOFN.lStructSize := _SIZEOF ( _WINOPENFILENAME) sOFN.hwndOwner := oOwner:Handle() sOFN.lpstrFile := pszRes sOFN.nMaxFile := MAX_LEN sOFN.lpstrFileTitle := NULL_PSZ sOFN.nMaxFileTitle := 0 sOFN.lpstrInitialDir:= String2Psz( "C:\cavo28\bin" ) // sOFN.lpfnHook := @__StdFileHook() <------- THIS line in the stdDLg.prg is the problem ! hDLL := LoadLibrary(String2Psz( "COMDLG32.DLL")) IF hDLL != NULL_PTR gpfnGetOpenFileName := GetProcAddress(hDLL, String2Psz( "GetOpenFileNameA")) IF gpfnGetOpenFileName != NULL_PTR lRet := LOGIC ( _CAST , PCALL(gpfnGetOpenFileName, sOFN) ) ENDIF FreeLibrary ( hDLL ) ENDIF MemFree ( sOFN ) RETURN lRet