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. How to diable ok button of property sheet

How to diable ok button of property sheet

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

    Hello all, For certain condition in my application I want to disable ok button of property page. Can anybody please tell me how to do that? regards, Aj

    O N T 3 Replies Last reply
    0
    • J jadhav123

      Hello all, For certain condition in my application I want to disable ok button of property page. Can anybody please tell me how to do that? regards, Aj

      O Offline
      O Offline
      o sanchez
      wrote on last edited by
      #2

      You can do it using CPropertySheet::SetWizardButtons with PSWIZB_DISABLEDFINISH, take a look here: http://msdn2.microsoft.com/en-us/library/ex7e7b4s.aspx[^] Cheers.

      N 1 Reply Last reply
      0
      • J jadhav123

        Hello all, For certain condition in my application I want to disable ok button of property page. Can anybody please tell me how to do that? regards, Aj

        N Offline
        N Offline
        Naveen
        wrote on last edited by
        #3

        create a member variable for the OK button and when ever u want call the EnableWindow( FALSE ) to make it disabled. nave

        1 Reply Last reply
        0
        • O o sanchez

          You can do it using CPropertySheet::SetWizardButtons with PSWIZB_DISABLEDFINISH, take a look here: http://msdn2.microsoft.com/en-us/library/ex7e7b4s.aspx[^] Cheers.

          N Offline
          N Offline
          Naveen
          wrote on last edited by
          #4

          osanchez@prodys.net wrote:

          You can do it using CPropertySheet

          but he asks for CPropertyPage. Also there is no OK buttons in the CPropertySheet ...right? nave

          O 1 Reply Last reply
          0
          • J jadhav123

            Hello all, For certain condition in my application I want to disable ok button of property page. Can anybody please tell me how to do that? regards, Aj

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

            jadhav123 wrote:

            For certain condition in my application I want to disable ok button of property page. Can anybody please tell me how to do that?

            have a look at this article :- http://codeproject.com/property/hacking_the_cpropertyshee.asp[^]

            "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 and You

            1 Reply Last reply
            0
            • N Naveen

              osanchez@prodys.net wrote:

              You can do it using CPropertySheet

              but he asks for CPropertyPage. Also there is no OK buttons in the CPropertySheet ...right? nave

              O Offline
              O Offline
              o sanchez
              wrote on last edited by
              #6

              Naveen R wrote:

              but he asks for CPropertyPage

              Yes, i read it very fast :-) I don't imagine a propertysheet with different ok buttons in each page. Cheers.

              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