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. Remove help button on CPropertySheet

Remove help button on CPropertySheet

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

    hi, how to remove help button in cpropertysheet. thanks in advance.

    M U 3 Replies Last reply
    0
    • M murali_utr

      hi, how to remove help button in cpropertysheet. thanks in advance.

      M Offline
      M Offline
      Manikandan
      wrote on last edited by
      #2

      sheet.m_psh.dwFlags &= ~PSH_HASHELP;

      M 1 Reply Last reply
      0
      • M murali_utr

        hi, how to remove help button in cpropertysheet. thanks in advance.

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

        BOOL CMySheet::OnInitDialog() { CPropertySheet::OnInitDialog(); // this hides the Help button CWnd* pHelpButton = GetDlgItem (IDHELP); ASSERT (pHelpButton); pHelpButton->ShowWindow (SW_HIDE); return TRUE; }

        M 1 Reply Last reply
        0
        • M murali_utr

          hi, how to remove help button in cpropertysheet. thanks in advance.

          U Offline
          U Offline
          User 423850
          wrote on last edited by
          #4

          Write the following code in constructor of every property page which is added in to the property sheet m_psp.dwFlags &= ~(PSP_HASHELP); Thanx TAKE CARE

          M 1 Reply Last reply
          0
          • U User 423850

            Write the following code in constructor of every property page which is added in to the property sheet m_psp.dwFlags &= ~(PSP_HASHELP); Thanx TAKE CARE

            M Offline
            M Offline
            murali_utr
            wrote on last edited by
            #5

            hi thanks for suggest it's working.

            1 Reply Last reply
            0
            • M Manikandan

              BOOL CMySheet::OnInitDialog() { CPropertySheet::OnInitDialog(); // this hides the Help button CWnd* pHelpButton = GetDlgItem (IDHELP); ASSERT (pHelpButton); pHelpButton->ShowWindow (SW_HIDE); return TRUE; }

              M Offline
              M Offline
              murali_utr
              wrote on last edited by
              #6

              thanks for your suggestions.

              1 Reply Last reply
              0
              • M Manikandan

                sheet.m_psh.dwFlags &= ~PSH_HASHELP;

                M Offline
                M Offline
                murali_utr
                wrote on last edited by
                #7

                hi, i have some data validation on onok the page. the validation is not satisfied means i don't want to close the sheet. once again place the focus on the control on the page. thanks in advance

                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