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. still on CFileDialog

still on CFileDialog

Scheduled Pinned Locked Moved C / C++ / MFC
question
8 Posts 5 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.
  • D Offline
    D Offline
    Desmo16
    wrote on last edited by
    #1

    Hi all, The CFileDialog has on the bottom-right corner a button labeled as "open". How can i change the label into "save" ? Thanx in advance, Desmo16.

    C T H 3 Replies Last reply
    0
    • D Desmo16

      Hi all, The CFileDialog has on the bottom-right corner a button labeled as "open". How can i change the label into "save" ? Thanx in advance, Desmo16.

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Did you read the documentation about the function ? (it's on MSDN). If you read it, you would have seen that the first argument to the function is a boolean that specify if the file dialog is a load or save dialog box.


      Cédric Moonen Software developer
      Charting control [Updated - v1.1]

      1 Reply Last reply
      0
      • D Desmo16

        Hi all, The CFileDialog has on the bottom-right corner a button labeled as "open". How can i change the label into "save" ? Thanx in advance, Desmo16.

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        damn it !!! i gave you the link to the constructor CFileDialog::CFileDialog()[^]... you didn't even bother reading it :( msdn says : bOpenFileDialog Set to TRUE to construct a File Open dialog box or FALSE to construct a File Save As dialog box.


        You don't know where to start ? ask a good friend

        [VisualCalc 3.0][Flags Beginner's Guide]

        R D 2 Replies Last reply
        0
        • T toxcct

          damn it !!! i gave you the link to the constructor CFileDialog::CFileDialog()[^]... you didn't even bother reading it :( msdn says : bOpenFileDialog Set to TRUE to construct a File Open dialog box or FALSE to construct a File Save As dialog box.


          You don't know where to start ? ask a good friend

          [VisualCalc 3.0][Flags Beginner's Guide]

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          toxcct wrote:

          damn it !!!

          cool cool buddy. :-D

          Nobody can give you wiser advice than yourself. - Cicero

          T 1 Reply Last reply
          0
          • T toxcct

            damn it !!! i gave you the link to the constructor CFileDialog::CFileDialog()[^]... you didn't even bother reading it :( msdn says : bOpenFileDialog Set to TRUE to construct a File Open dialog box or FALSE to construct a File Save As dialog box.


            You don't know where to start ? ask a good friend

            [VisualCalc 3.0][Flags Beginner's Guide]

            D Offline
            D Offline
            Desmo16
            wrote on last edited by
            #5

            I'm sorry you're right. I didn't think it was so easy, I supposed i had to use fd.m_pOFN->something to do it. I found that immediately after the post. Excuse me again.

            T 1 Reply Last reply
            0
            • R Rajesh R Subramanian

              toxcct wrote:

              damn it !!!

              cool cool buddy. :-D

              Nobody can give you wiser advice than yourself. - Cicero

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              brahmma wrote:

              cool cool buddy

              seriously... why answering to people when they don't listen to you...


              You don't know where to start ? ask a good friend

              [VisualCalc 3.0][Flags Beginner's Guide]

              1 Reply Last reply
              0
              • D Desmo16

                I'm sorry you're right. I didn't think it was so easy, I supposed i had to use fd.m_pOFN->something to do it. I found that immediately after the post. Excuse me again.

                T Offline
                T Offline
                toxcct
                wrote on last edited by
                #7

                nevermind, it's ok... but read the docs before asking too easy question ;)


                You don't know where to start ? ask a good friend

                [VisualCalc 3.0][Flags Beginner's Guide]

                1 Reply Last reply
                0
                • D Desmo16

                  Hi all, The CFileDialog has on the bottom-right corner a button labeled as "open". How can i change the label into "save" ? Thanx in advance, Desmo16.

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  In additional you can use GetSaveFileNameor GetOpenFileName


                  WhiteSky


                  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