Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #8213

Re: Windows 10 OpenDialog resizing bug...

From "Karl-Heinz" <invalid@invalid.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Windows 10 OpenDialog resizing bug...
Date 2015-06-15 23:54 +0200
Message-ID <cu8vshFosjcU1@mid.individual.net> (permalink)
References <mlmo6c$7cp$1@dont-email.me>

Show all headers | View raw


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

--------  

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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