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. Article Writing
  3. New cool Windows 2000 Open File Dialogs with MFC

New cool Windows 2000 Open File Dialogs with MFC

Scheduled Pinned Locked Moved Article Writing
6 Posts 6 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.
  • U Offline
    U Offline
    User 4653
    wrote on last edited by
    #1

    Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT. Thanks

    E J A J T 5 Replies Last reply
    0
    • U User 4653

      Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT. Thanks

      E Offline
      E Offline
      Erik Thompson
      wrote on last edited by
      #2

      You probably need to get the latest version of the shell DLL's for each OS. which may or maynot be available in a Service pack. ================== The original message was: Does anybody know what to do to use the new Open File Dialog
      that is now standard on Windows 2000 ? My app works fin on
      W2000 but the Open File Dialog looks exactly the same way as
      under Windows 95/98/NT.

      Thanks

      1 Reply Last reply
      0
      • U User 4653

        Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT. Thanks

        J Offline
        J Offline
        Jesse Ezell
        wrote on last edited by
        #3

        In any case, it might be safer to use the old dialog box, unless you are planning to make your program only W2000 compatible. The other option is to use an OS check and open a different box for each setting...however, this might complicate things depending on how the API for the new boxes works. It may auto-detect for you, but you never know. Best thing is to get the docs from MS and then implement it.
        ================== The original message was: Does anybody know what to do to use the new Open File Dialog
        that is now standard on Windows 2000 ? My app works fin on
        W2000 but the Open File Dialog looks exactly the same way as
        under Windows 95/98/NT.

        Thanks

        1 Reply Last reply
        0
        • U User 4653

          Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT. Thanks

          A Offline
          A Offline
          Andrei Zenkovitch
          wrote on last edited by
          #4

          New Open File dialog is available only on Windows 2000 and in order to use it you have to use new version of OPENFILENAME structure that is defined in platform SDK 2000 as following: typedef struct tagOFN { DWORD lStructSize; HWND hwndOwner; HINSTANCE hInstance; LPCTSTR lpstrFilter; LPTSTR lpstrCustomFilter; DWORD nMaxCustFilter; DWORD nFilterIndex; LPTSTR lpstrFile; DWORD nMaxFile; LPTSTR lpstrFileTitle; DWORD nMaxFileTitle; LPCTSTR lpstrInitialDir; LPCTSTR lpstrTitle; DWORD Flags; WORD nFileOffset; WORD nFileExtension; LPCTSTR lpstrDefExt; DWORD lCustData; LPOFNHOOKPROC lpfnHook; LPCTSTR lpTemplateName; #if (_WIN32_WINNT >= 0x0500) struct IMoniker **rgpMonikers; DWORD cMonikers; DWORD FlagsEx; #endif // (_WIN32_WINNT >= 0x0500) } OPENFILENAME; The new element of this structure that you will be primarily interested in is FlagsEx. It can be set to the following value: <<<< OFN_EX_NOPLACESBAR If this flag is set, the places bar is not displayed. If this flag is not set, Explorer-style dialog boxes include a places bar containing icons for commonly-used folders, such as Favorites and Desktop. >>>> Regards Andrei Zenkovitch Dundas Software ================== The original message was: Does anybody know what to do to use the new Open File Dialog
          that is now standard on Windows 2000 ? My app works fin on
          W2000 but the Open File Dialog looks exactly the same way as
          under Windows 95/98/NT.

          Thanks

          1 Reply Last reply
          0
          • U User 4653

            Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT. Thanks

            J Offline
            J Offline
            Jeremy Davis
            wrote on last edited by
            #5

            Have a look at www.microsoft.com/msj The "Microsoft Systems Journal" dated Aug 1999. Aticle "The logo and beyond..." Regards Jerry ================== The original message was: Does anybody know what to do to use the new Open File Dialog
            that is now standard on Windows 2000 ? My app works fin on
            W2000 but the Open File Dialog looks exactly the same way as
            under Windows 95/98/NT.

            Thanks

            1 Reply Last reply
            0
            • U User 4653

              Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT. Thanks

              T Offline
              T Offline
              Thomas Freudenberg
              wrote on last edited by
              #6

              Hi Michael, have a look at http://www.codeproject.com/dialog/win2000fd.asp Best regards, Thomas

              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