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. Hiding tab control for CPropertySheet

Hiding tab control for CPropertySheet

Scheduled Pinned Locked Moved C / C++ / MFC
c++regexhelp
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.
  • J Offline
    J Offline
    Joe Woodbury
    wrote on last edited by
    #1

    I'm writing a quick options dialog app, but am a little rusty with my MFC. In short, I have a list box to the left and a property sheet containing pages corresponding to the items in the list box. However, I want to hide the tab control of the property sheet and move the pages up to match the top of the list box. Hiding the tab control is easy: CPropertySheet::GetTabControl()->ShowWindow(FALSE) I then went down the path of grabbing the rects of things and subtracting, but I can't help but think I'm making this more complicated than it needs to be. (I did this once back in 2005, but don't have that code and can't remember what I did.)

    D V 2 Replies Last reply
    0
    • J Joe Woodbury

      I'm writing a quick options dialog app, but am a little rusty with my MFC. In short, I have a list box to the left and a property sheet containing pages corresponding to the items in the list box. However, I want to hide the tab control of the property sheet and move the pages up to match the top of the list box. Hiding the tab control is easy: CPropertySheet::GetTabControl()->ShowWindow(FALSE) I then went down the path of grabbing the rects of things and subtracting, but I can't help but think I'm making this more complicated than it needs to be. (I did this once back in 2005, but don't have that code and can't remember what I did.)

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      The MSDN article has apparently been removed, but someone here has posted most of the code from it.

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      1 Reply Last reply
      0
      • J Joe Woodbury

        I'm writing a quick options dialog app, but am a little rusty with my MFC. In short, I have a list box to the left and a property sheet containing pages corresponding to the items in the list box. However, I want to hide the tab control of the property sheet and move the pages up to match the top of the list box. Hiding the tab control is easy: CPropertySheet::GetTabControl()->ShowWindow(FALSE) I then went down the path of grabbing the rects of things and subtracting, but I can't help but think I'm making this more complicated than it needs to be. (I did this once back in 2005, but don't have that code and can't remember what I did.)

        V Offline
        V Offline
        Victor Nijegorodov
        wrote on last edited by
        #3

        Did you consider using [CMFCPropertySheet Class](https://msdn.microsoft.com/en-us/library/bb981937(v=vs.140).aspx) instead?

        J 1 Reply Last reply
        0
        • V Victor Nijegorodov

          Did you consider using [CMFCPropertySheet Class](https://msdn.microsoft.com/en-us/library/bb981937(v=vs.140).aspx) instead?

          J Offline
          J Offline
          Joe Woodbury
          wrote on last edited by
          #4

          Ah, that's what I needed. Thank you very much. :thumbsup:

          V 1 Reply Last reply
          0
          • J Joe Woodbury

            Ah, that's what I needed. Thank you very much. :thumbsup:

            V Offline
            V Offline
            Victor Nijegorodov
            wrote on last edited by
            #5

            You are welcome! :)

            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