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:54:23 +0200 Lines: 70 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: individual.net PnBxoVUL36yuls1Xy3u3Kwn+BX66Tn5EmEy4WRHFAKamHVPnM= Cancel-Lock: sha1:FbjRKhoPWIQLUy/SaxSb1tkaT4k= 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:8213 Hi Jean , ------------------------------------------------------------------------------ - second try, because the first msg left the basket to fast ;-) ------------------------------------------------------------------------------- i confirm the problem, but IMO the main problem is that the VO StdDlg sources donīt make use of the modern dialogs introduced by Vista. Here is a description why: http://www.tmssoftware.com/site/atbdev6.asp In short: The VO - buildin hook implementation prevents such a new dialog from being shown. Hereīs a quick hack that - at least - shows such a new dialog. Itīs still resizable in win 10 and itīs excatly the same that VO uses when you select "File" -> "Open Project" within the VO-IDE. IMO Itīs time to rewrite the StdDlg.prg ;-) regards Karl-Heinz --------------------- FUNCTION ShowNewOpenDialog( Owner ) 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 --------