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. CPropertySheet change Cancel Button

CPropertySheet change Cancel Button

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

    Using CPropertySheet, is there anyway to change the text of the Cancel button?

    T 1 Reply Last reply
    0
    • M moobob

      Using CPropertySheet, is there anyway to change the text of the Cancel button?

      T Offline
      T Offline
      Tim Smith
      wrote on last edited by
      #2

      pSheet ->GetDlgItem (IDCANCEL) ->SetWindowText ("New Text");

      That is assuming pSheet is a pointer to your sheet. Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?

      M 1 Reply Last reply
      0
      • T Tim Smith

        pSheet ->GetDlgItem (IDCANCEL) ->SetWindowText ("New Text");

        That is assuming pSheet is a pointer to your sheet. Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?

        M Offline
        M Offline
        moobob
        wrote on last edited by
        #3

        Tim, I don't know how to do this with CPropertySheet. It gives you the 4 wizard buttons (Back, Next, Cancel, Help) automatically with member functions to manage them. See SetWizardButtons in MSDN. You don't have direct access to the buttons. I don't see a way to change the text on the Cancel Button. Bob

        T 1 Reply Last reply
        0
        • M moobob

          Tim, I don't know how to do this with CPropertySheet. It gives you the 4 wizard buttons (Back, Next, Cancel, Help) automatically with member functions to manage them. See SetWizardButtons in MSDN. You don't have direct access to the buttons. I don't see a way to change the text on the Cancel Button. Bob

          T Offline
          T Offline
          Tim Smith
          wrote on last edited by
          #4

          Those buttons are just like any other button on a dialog. Get the window and then set the window text. Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?

          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