Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #8212
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Windows 10 OpenDialog resizing bug... |
| Date | 2015-06-15 23:17 +0200 |
| Message-ID | <cu8tpkFobviU1@mid.individual.net> (permalink) |
| References | <mlmo6c$7cp$1@dont-email.me> |
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
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Windows 10 OpenDialog resizing bug... <jean_ray67@hotmail.com> - 2015-06-15 10:42 -0400
Re: Windows 10 OpenDialog resizing bug... "Wolfgang Riedmann" <wriedmann@gmail.com> - 2015-06-15 18:11 +0200
Re: Windows 10 OpenDialog resizing bug... "Karl-Heinz" <invalid@invalid.invalid> - 2015-06-15 23:17 +0200
Re: Windows 10 OpenDialog resizing bug... "Karl-Heinz" <invalid@invalid.invalid> - 2015-06-15 23:54 +0200
Re: Windows 10 OpenDialog resizing bug... "Gerhard Bunzel" <g.bunzel@domonet.de> - 2015-06-16 16:09 +0200
Re: Windows 10 OpenDialog resizing bug... "Karl-Heinz" <invalid@invalid.invalid> - 2015-06-16 18:33 +0200
Re: Windows 10 OpenDialog resizing bug... "Jean Raymond" <jean_ray67@hotmail.com> - 2015-08-07 10:59 -0400
Re: Windows 10 OpenDialog resizing bug... dmitryg2002@mail.ru - 2015-09-23 13:28 -0700
Re: Windows 10 OpenDialog resizing bug... "Karl-Heinz" <invalid@invalid.invalid> - 2015-09-24 13:10 +0200
Re: Windows 10 OpenDialog resizing bug... "Jean Raymond" <jean_ray67@hotmail.com> - 2015-09-24 09:23 -0400
Re: Windows 10 OpenDialog resizing bug... dmitryg2002@mail.ru - 2015-09-24 08:17 -0700
Re: Windows 10 OpenDialog resizing bug... "Jean Raymond" <jean_ray67@hotmail.com> - 2015-10-14 12:19 -0400
Re: Windows 10 OpenDialog resizing bug... Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2015-10-14 21:10 +0200
Re: Windows 10 OpenDialog resizing bug... D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-10-30 21:05 +0100
Re: Windows 10 OpenDialog resizing bug... "Karl-Heinz" <invalid@invalid.invalid> - 2015-11-12 20:11 +0100
csiph-web