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. Resizing PropertySheet.

Resizing PropertySheet.

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

    Hello all, I have 2 property pages: Property Page1 thats a size of 252 x 354. Property Page2 thats a size of 252 x 100. When I run the application I get a Property Sheet that's size 252x354. The size remains the same even if I select the second page. Is it possible to resize the Property Sheet to the size of the page that's currently selected? Thanks

    _ 1 Reply Last reply
    0
    • F FISH786

      Hello all, I have 2 property pages: Property Page1 thats a size of 252 x 354. Property Page2 thats a size of 252 x 100. When I run the application I get a Property Sheet that's size 252x354. The size remains the same even if I select the second page. Is it possible to resize the Property Sheet to the size of the page that's currently selected? Thanks

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      Assuming you're using MFC, override the OnSetActive function of the CPropertyPage derived class. This is called every time a property page is selected. From this function you could resize the parent sheet using GetParent()->SetWindowPos(.... But you may not be able to get the required page size from OnSetActive because the page is resized to the largest page size. You may have to do that from other functions like OnInitDialog.

      «_Superman_» I love work. It gives me something to do between weekends.

      F 1 Reply Last reply
      0
      • _ _Superman_

        Assuming you're using MFC, override the OnSetActive function of the CPropertyPage derived class. This is called every time a property page is selected. From this function you could resize the parent sheet using GetParent()->SetWindowPos(.... But you may not be able to get the required page size from OnSetActive because the page is resized to the largest page size. You may have to do that from other functions like OnInitDialog.

        «_Superman_» I love work. It gives me something to do between weekends.

        F Offline
        F Offline
        FISH786
        wrote on last edited by
        #3

        Thank you.

        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