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 can I add/embed a Property sheet in a Property sheet ?

How can I add/embed a Property sheet in a Property sheet ?

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

    I've the following code snippet which adds Property page objects cPropPg1Obj and cPropPg2Obj in the property sheet cPropSheetObj.

    CPropertySheet cPropSheetObj;

    CPropPg1 cPropPg1Obj;
    CPropPg2 cPropPg2Obj;

    cPropSheetObj.AddPage(&cPropPg1Obj);
    cPropSheetObj.AddPage(&cPropPg2Obj);

    cPropSheetObj.DoModal();

    Is there a way where I could add/embed a property sheet (say cPropSheetObj2) as a whole which contains property pages cPropPg3obj and cPropPg4obj in the property sheet cPropSheetObj.

    K S 2 Replies Last reply
    0
    • S SherTeks

      I've the following code snippet which adds Property page objects cPropPg1Obj and cPropPg2Obj in the property sheet cPropSheetObj.

      CPropertySheet cPropSheetObj;

      CPropPg1 cPropPg1Obj;
      CPropPg2 cPropPg2Obj;

      cPropSheetObj.AddPage(&cPropPg1Obj);
      cPropSheetObj.AddPage(&cPropPg2Obj);

      cPropSheetObj.DoModal();

      Is there a way where I could add/embed a property sheet (say cPropSheetObj2) as a whole which contains property pages cPropPg3obj and cPropPg4obj in the property sheet cPropSheetObj.

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      It is a bad idea, because the GUI gets too complicated. X| Yes there is a way. You can implement a tab control in the wanted page and than show some controls/dialog. Or make a sub dialog after a button. Better sort the wanted functionality with an other methology. :-O

      Greetings from Germany

      1 Reply Last reply
      0
      • S SherTeks

        I've the following code snippet which adds Property page objects cPropPg1Obj and cPropPg2Obj in the property sheet cPropSheetObj.

        CPropertySheet cPropSheetObj;

        CPropPg1 cPropPg1Obj;
        CPropPg2 cPropPg2Obj;

        cPropSheetObj.AddPage(&cPropPg1Obj);
        cPropSheetObj.AddPage(&cPropPg2Obj);

        cPropSheetObj.DoModal();

        Is there a way where I could add/embed a property sheet (say cPropSheetObj2) as a whole which contains property pages cPropPg3obj and cPropPg4obj in the property sheet cPropSheetObj.

        S Offline
        S Offline
        SherTeks
        wrote on last edited by
        #3

        Following relevant link could be helpful : http://www.codeguru.com/cpp/controls/propertysheet/article.php/c595/

        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