• Long file names in Common Dialog (97 SR-1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Long file names in Common Dialog (97 SR-1)

    Author
    Topic
    #369957

    Are long file names and Multiselect mutually exclusive in the Common Dialog control? I have tried the following flags:

    objCommonControl.flags = cdlOFNAllowMultiselect AND cdlOFNLongNames

    objCommonControl.flags = cdlOFNAllowMultiselect OR cdlOFNLongNames

    The first syntax displays the long filenames, but disallows Multiselect, while the second syntax allows Multiselect, but displays only the short filenames. I have had the same results bypassing the CommonControl Obj, and writing to the API using a wrapper function.

    I want a File Open dialog that displays long filenames AND allows Multiselect. Thanks

    Viewing 0 reply threads
    Author
    Replies
    • #584714

      Use cdlOFNExplorer (&H80000) instead of cdlOFNLongNames:

      objCommonControl.Flags = cdlOFNAllowMultiselect + cdlOFNExplorer

      From Microsoft documentation:

      OFN_EXPLORER
      Indicates that any customizations made to the Open or Save As dialog box use the new Explorer-style customization methods. (…)
      By default, the Open and Save As dialog boxes use the Explorer-style user interface regardless of whether this flag is set. This flag is necessary only if you provide a hook procedure or custom template, or set the OFN_ALLOWMULTISELECT flag.

    Viewing 0 reply threads
    Reply To: Long file names in Common Dialog (97 SR-1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: