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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to change the caption of the "open" button?

How to change the caption of the "open" button?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
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.
  • L Offline
    L Offline
    leonwoo
    wrote on last edited by
    #1

    hi, I would like to change the caption of a button on a "open file dialogue". Do you know how to do it?? Thank you. :) leonwoo

    C 1 Reply Last reply
    0
    • L leonwoo

      hi, I would like to change the caption of a button on a "open file dialogue". Do you know how to do it?? Thank you. :) leonwoo

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      It's id is defined in dlgs.h and is something like btn1 or btn2. try GetDlgItem on different numbers working up until one works ;0) Christian The content of this post is not necessarily the opinion of my yadda yadda yadda. To understand recursion, we must first understand recursion.

      L 1 Reply Last reply
      0
      • C Christian Graus

        It's id is defined in dlgs.h and is something like btn1 or btn2. try GetDlgItem on different numbers working up until one works ;0) Christian The content of this post is not necessarily the opinion of my yadda yadda yadda. To understand recursion, we must first understand recursion.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        check out http://www.codeproject.com/dialog/ddxfile.asp. This article by PJ Naughter does exactly what you want.:)

        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