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. Customization of defaul buttons provided in PropertyPages

Customization of defaul buttons provided in PropertyPages

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

    Hi By default a property page has three buttons ie BACK,NEXT and CANCEL. Along with these buttons,I want a FINISH button also in my Property pages. How to achieve it?

    With Regards Neeraj Sinha Netstudio Pune

    G D 2 Replies Last reply
    0
    • N Neeraj Sinha

      Hi By default a property page has three buttons ie BACK,NEXT and CANCEL. Along with these buttons,I want a FINISH button also in my Property pages. How to achieve it?

      With Regards Neeraj Sinha Netstudio Pune

      G Offline
      G Offline
      Gary R Wheeler
      wrote on last edited by
      #2

      In wizard mode, the last property page in the set will change the 'next' button to 'finish' automatically. Check out the PSH_WIZARD and PSH_WIZARDHASFINISH values for the dwFlags value in the PROPSHEETHEADER[^] structure.


      Software Zen: delete this;

      Fold With Us![^]

      N 1 Reply Last reply
      0
      • G Gary R Wheeler

        In wizard mode, the last property page in the set will change the 'next' button to 'finish' automatically. Check out the PSH_WIZARD and PSH_WIZARDHASFINISH values for the dwFlags value in the PROPSHEETHEADER[^] structure.


        Software Zen: delete this;

        Fold With Us![^]

        N Offline
        N Offline
        Neeraj Sinha
        wrote on last edited by
        #3

        Well,it's correct that On the last wizard page,the NEXT button can be automatically changed to FINISH button,but I want the FINISH button on all the wizard pages right from it's first page along with the NEXT, BACK and CANCEL button at the same time.Is it possible to do so?

        With Regards Neeraj Sinha Netstudio Pune

        G 1 Reply Last reply
        0
        • N Neeraj Sinha

          Well,it's correct that On the last wizard page,the NEXT button can be automatically changed to FINISH button,but I want the FINISH button on all the wizard pages right from it's first page along with the NEXT, BACK and CANCEL button at the same time.Is it possible to do so?

          With Regards Neeraj Sinha Netstudio Pune

          G Offline
          G Offline
          Gary R Wheeler
          wrote on last edited by
          #4

          Setting the PSH_WIZARDHASFINISH value in the dwFlags member of the PROPSHEETHEADER should do that. If you are using the CPropertyPage/CPropertySheet MFC classes, you should be able to do something like this:

          CPropertySheet sheet;
          sheet.m_psh.dwFlags |= PSH_WIZARD | PSH_WIZARDHASFINISH;
          sheet.AddPage(...); // add your property pages
          sheet.DoModal(); // run the wizard

          Alternatively, you can use the SetWizardButtons member function in the CPropertySheet class.


          Software Zen: delete this;

          Fold With Us![^]

          1 Reply Last reply
          0
          • N Neeraj Sinha

            Hi By default a property page has three buttons ie BACK,NEXT and CANCEL. Along with these buttons,I want a FINISH button also in my Property pages. How to achieve it?

            With Regards Neeraj Sinha Netstudio Pune

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

            In order to show all 3 of Back, Next, and Finish, you gotta move the buttons. Here's the Microsoft Knowledgebase page with sample code: http://support.microsoft.com/kb/q143210/[^]

            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