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


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

Re: Help needed with ListBox:ListFiles()

From "Geoff Schaller" <geoffx@softwarexobjectives.com.au>
Subject Re: Help needed with ListBox:ListFiles()
Date 2011-05-26 22:09 +0000
Newsgroups comp.lang.clipper.visual-objects
References <3dbfe8b2-1981-4ed4-a7f7-0a2db69a38d4@f11g2000vbx.googlegroups.com>
Message-ID <4ddecfac$0$67777$c30e37c6@exi-reader.telstra.net> (permalink)

Show all headers | View raw


Quite apart from the fact I am not interested in 2.6 or what 2.6 did, 
the issue with using API calls directly is to use the CORRECT window to 
pass as the dialog handle. In the case of the data window it is not the 
container handle (oDataWin:Handle()) but the oSurface:Handle() - which 
you shold manually expose in your subclassed data window.

I assure you, this mechanism works on data windows in both 2.6 and 2.8

Geoff



"marc3l0" <mmarloch@gmail.com> wrote in message 
news:3dbfe8b2-1981-4ed4-a7f7-0a2db69a38d4@f11g2000vbx.googlegroups.com:

> well i'm using VO 2.6 and it did not work in datawindows. I did not
> change anything in my code just put it on a dialogwindow and the issue
> was solved... maybe it is a bug though... but look at the first
> parameter of the windows API function
>
> here is the API call that I THINK VO uses internaly...(NOTE THE FIRST
> PARAMETER SAYS HANDLE TO DIALOG BOX)
>
> The DlgDirList function fills the specified list box with the names of
> all files matching the specified path or filename.
>
> int DlgDirList(
>
>     HWND hDlg, // handle to dialog box with list box
>     LPTSTR lpPathSpec, // pointer to path or filename string
>     int nIDListBox, // identifier of list box
>     int nIDStaticPath, // identifier of static control
>     UINT uFileType // file attributes to display
>    );
> Parameters
>
> hDlg
>
> Identifies the dialog box that contains the list box.
>
> lpPathSpec
>
> Points to a null-terminated string that contains the path or filename.
> DlgDirList modifies this string, which should be long enough to
> contain the modifications. For more information about this parameter,
> see the Remarks section.
>
> nIDListBox
>
> Specifies the identifier of a list box. If this parameter is zero,
> DlgDirList assumes that no list box exists and does not attempt to
> fill one.
>
> nIDStaticPath
>
> Specifies the identifier of the static control used for displaying the
> current drive and directory. If this parameter is zero, DlgDirList
> assumes that no such control is present.
>
> uFileType
>
> Specifies attributes of the filenames to be displayed. This parameter
> must be one or more of the following values:
>
> Value Description
> DDL_ARCHIVE Includes archived files.
> DDL_DIRECTORY Includes subdirectories. Subdirectory names are enclosed
> in square brackets ([ ]).
> DDL_DRIVES Includes drives. Drives are listed in the form [-x-], where
> x is the drive letter.
> DDL_EXCLUSIVE Includes only files with the specified attributes. By
> default, read-write files are listed even if DDL_READWRITE is not
> specified.
> DDL_HIDDEN Includes hidden files.
> DDL_READONLY Includes read-only files.
> DDL_READWRITE Includes read-write files with no additional attributes.
> DDL_SYSTEM Includes system files.
> DDL_POSTMSGS Posts messages to the application's message queue. By
> default, DlgDirList sends messages directly to the dialog box
> procedure.
>
>
> thanks everyone

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


Thread

Help needed with ListBox:ListFiles() marc3l0 <mmarloch@gmail.com> - 2011-05-25 13:52 -0700
  Re: Help needed with ListBox:ListFiles() Karl Faller <k.faller_withoutthat_@onlinehome.de> - 2011-05-25 23:39 +0200
  Re: Help needed with ListBox:ListFiles() marc3l0 <mmarloch@gmail.com> - 2011-05-25 14:50 -0700
    Re: Help needed with ListBox:ListFiles() "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-05-26 00:18 +0000
  Re: Help needed with ListBox:ListFiles() marc3l0 <mmarloch@gmail.com> - 2011-05-26 09:43 -0700
    Re: Help needed with ListBox:ListFiles() "Karl-Heinz" <invalid@invalid.invalid> - 2011-05-26 21:45 +0200
    Re: Help needed with ListBox:ListFiles() "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-05-26 22:09 +0000
  Re: Help needed with ListBox:ListFiles() marc3l0 <mmarloch@gmail.com> - 2011-05-27 14:35 -0700

csiph-web