Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SHBrowseForFolder and BIF_NONEWFOLDERBUTTON

SHBrowseForFolder and BIF_NONEWFOLDERBUTTON

Scheduled Pinned Locked Moved C / C++ / MFC
designlinuxhelpquestionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Maximilien
    wrote on last edited by
    #1

    If There's a define or that, which I don't have in any of the include files of VC, and that the help file doesn't say that I must have any particular version of shell32.dll; should the default UI for SHBrowseForFolder have a "new folder dialog" ?!?!!? I'm a bit confused about the help for that shell function ... Max. :confused:

    M M 2 Replies Last reply
    0
    • M Maximilien

      If There's a define or that, which I don't have in any of the include files of VC, and that the help file doesn't say that I must have any particular version of shell32.dll; should the default UI for SHBrowseForFolder have a "new folder dialog" ?!?!!? I'm a bit confused about the help for that shell function ... Max. :confused:

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      You'll need to download the Platform SDK to get the latest header files. See the VC Forum FAQ (link at the top of the page) for more details. --Mike-- http://home.inreach.com/mdunn/ #include "witty_sig.h" :love: your :bob: with :vegemite: and :beer:

      1 Reply Last reply
      0
      • M Maximilien

        If There's a define or that, which I don't have in any of the include files of VC, and that the help file doesn't say that I must have any particular version of shell32.dll; should the default UI for SHBrowseForFolder have a "new folder dialog" ?!?!!? I'm a bit confused about the help for that shell function ... Max. :confused:

        M Offline
        M Offline
        Mark Terrano
        wrote on last edited by
        #3

        Go to your MSDN CDs, or msdn.microsoft.com (typing URL from memory) and get the latest SDK for the windows shell. It'll replace your shlobj.h file and provide the new values that you need to have defined. You might also have to add WINVER=0x0400 in your settings - if you are using a feature that says Version 0.4 - you want 0x0400 for 5 you want WINVER=0x0500 I was puzzled by this too at first. FYI you can just plug in the values instead of relying on the defines and you'll be okay. Hope this helps: #define BIF_RETURNONLYFSDIRS 0x0001 // For finding a folder to start document searching #define BIF_DONTGOBELOWDOMAIN 0x0002 // For starting the Find Computer #define BIF_STATUSTEXT 0x0004 // Top of the dialog has 2 lines of text for BROWSEINFO.lpszTitle and one line if // this flag is set. Passing the message BFFM_SETSTATUSTEXTA to the hwnd can set the // rest of the text. This is not used with BIF_USENEWUI and BROWSEINFO.lpszTitle gets // all three lines of text. #define BIF_RETURNFSANCESTORS 0x0008 #define BIF_EDITBOX 0x0010 // Add an editbox to the dialog #define BIF_VALIDATE 0x0020 // insist on valid result (or CANCEL) #define BIF_NEWDIALOGSTYLE 0x0040 // Use the new dialog layout with the ability to resize // Caller needs to call OleInitialize() before using this API #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX) #define BIF_BROWSEINCLUDEURLS 0x0080 // Allow URLs to be displayed or entered. (Requires BIF_USENEWUI) #define BIF_UAHINT 0x0100 // Add a UA hint to the dialog, in place of the edit box. May not be combined with BIF_EDITBOX #define BIF_NONEWFOLDERBUTTON 0x0200 // Do not add the "New Folder" button to the dialog. Only applicable with BIF_NEWDIALOGSTYLE. #define BIF_NOTRANSLATETARGETS 0x0400 // don't traverse target as shortcut #define BIF_BROWSEFORCOMPUTER 0x1000 // Browsing for Computers. #define BIF_BROWSEFORPRINTER 0x2000 // Browsing for Printers #define BIF_BROWSEINCLUDEFILES 0x4000 // Browsing for Everything #define BIF_SHAREABLE 0x8000 // sharable resources displayed (remote shares, requires BIF_USENEWUI) --Mark Terrano

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups