Re: Passing structures` flags to WinAPI32 functions from VB(VBA)
From: Tom Esh (tjeshGibberish_at_earthlink.net)
Date: 08/25/04
- Next message: MikeD: "Re: MDAC version"
- Previous message: Randy Birch: "Re: Copy system tray icon to 'shortcut'?"
- In reply to: Serg: "Passing structures` flags to WinAPI32 functions from VB(VBA)"
- Next in thread: MikeD: "Re: Passing structures` flags to WinAPI32 functions from VB(VBA)"
- Reply: MikeD: "Re: Passing structures` flags to WinAPI32 functions from VB(VBA)"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Aug 2004 18:32:43 -0400
On Wed, 25 Aug 2004 13:05:03 -0700, "Serg"
<Serg@discussions.microsoft.com> wrote:
>...
>How can I get numeric value to flag BIF_EDITBOX or other flags? In
>documentation of this structure it is not described.
>...
The actual values are defined in "ShlObj.h" in the platform SDK,
included with VS or the PSDK download. Anyhow, here's the VB
translations:
Public Const BIF_RETURNONLYFSDIRS = &H1
Public Const BIF_DONTGOBELOWDOMAIN = &H2
Public Const BIF_STATUSTEXT = &H4
Public Const BIF_RETURNFSANCESTORS = &H8
Public Const BIF_EDITBOX = &H10
Public Const BIF_VALIDATE = &H20
Public Const BIF_NEWDIALOGSTYLE = &H40
Public Const BIF_USENEWUI = (BIF_NEWDIALOGSTYLE Or BIF_EDITBOX)
Public Const BIF_BROWSEINCLUDEURLS = &H80
Public Const BIF_UAHINT = &H100
Public Const BIF_NONEWFOLDERBUTTON = &H200
Public Const BIF_NOTRANSLATETARGETS = &H400
Public Const BIF_BROWSEFORCOMPUTER = &H1000
Public Const BIF_BROWSEFORPRINTER = &H2000
Public Const BIF_BROWSEINCLUDEFILES = &H4000
Public Const BIF_SHAREABLE = &H8000
Public Const BFFM_INITIALIZED = 1
Public Const BFFM_SELCHANGED = 2
Public Const BFFM_VALIDATEFAILEDA = 3
Public Const BFFM_VALIDATEFAILEDW = 4
Public Const BFFM_IUNKNOWN = 5
Public Const BFFM_SETSTATUSTEXTA = (WM_USER + 100)
Public Const BFFM_ENABLEOK = (WM_USER + 101)
Public Const BFFM_SETSELECTIONA = (WM_USER + 102)
Public Const BFFM_SETSELECTIONW = (WM_USER + 103)
Public Const BFFM_SETSTATUSTEXTW = (WM_USER + 104)
Public Const BFFM_SETOKTEXT = (WM_USER + 105) 'Unicode only
Public Const BFFM_SETEXPANDED = (WM_USER + 106) 'Unicode only
-Tom
MVP - Visual Basic
(please post replies to the newsgroup)
- Next message: MikeD: "Re: MDAC version"
- Previous message: Randy Birch: "Re: Copy system tray icon to 'shortcut'?"
- In reply to: Serg: "Passing structures` flags to WinAPI32 functions from VB(VBA)"
- Next in thread: MikeD: "Re: Passing structures` flags to WinAPI32 functions from VB(VBA)"
- Reply: MikeD: "Re: Passing structures` flags to WinAPI32 functions from VB(VBA)"
- Messages sorted by: [ date ] [ thread ]