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. Change button name of FIle dialog

Change button name of FIle dialog

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
7 Posts 4 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.
  • C Offline
    C Offline
    CodeMak
    wrote on last edited by
    #1

    Can anyone tell me how to change the caption of the button in a file dialog to a cutomized one..... thanx'n'advance

    T D H 3 Replies Last reply
    0
    • C CodeMak

      Can anyone tell me how to change the caption of the button in a file dialog to a cutomized one..... thanx'n'advance

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      arshadkc wrote:

      Can anyone tell me how to change the caption of the button in a file dialog to

      you have to subclass that CFileDialog class, and OnInitDialog of that function you can perform your required function!

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief

      1 Reply Last reply
      0
      • C CodeMak

        Can anyone tell me how to change the caption of the button in a file dialog to a cutomized one..... thanx'n'advance

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Send the button a WM_SETTEXT message.


        "A good athlete is the result of a good and worthy opponent." - David Crow

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        T 1 Reply Last reply
        0
        • D David Crow

          Send the button a WM_SETTEXT message.


          "A good athlete is the result of a good and worthy opponent." - David Crow

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          DavidCrow wrote:

          Send the button a WM_SETTEXT message.

          just wondering how to send message to filedialog when filedialog is running in modal state!

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief

          D 1 Reply Last reply
          0
          • T ThatsAlok

            DavidCrow wrote:

            Send the button a WM_SETTEXT message.

            just wondering how to send message to filedialog when filedialog is running in modal state!

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            This can be done in the dialog's OnInitDialog() method (if using MFC), or in response to the WM_INITDIALOG message.


            "A good athlete is the result of a good and worthy opponent." - David Crow

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            T 1 Reply Last reply
            0
            • D David Crow

              This can be done in the dialog's OnInitDialog() method (if using MFC), or in response to the WM_INITDIALOG message.


              "A good athlete is the result of a good and worthy opponent." - David Crow

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

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

              DavidCrow wrote:

              This can be done in the dialog's OnInitDialog() method (if using MFC), or in response to the WM_INITDIALOG message.

              yeah you have subclass to achieve desired result

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief

              1 Reply Last reply
              0
              • C CodeMak

                Can anyone tell me how to change the caption of the button in a file dialog to a cutomized one..... thanx'n'advance

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

                I agree with ThatsAlok subclass is easy you need to id of buttons of File Dialog.


                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