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. CPropertyPage

CPropertyPage

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

    Hi, i have a MFC Dialog with a CPropertySheet in it. The CPropertySheet is made of 3 CPropertyPages, and one the these Pages holds a button, which, if pressed shall activate another CPropertyPage. Until now, i realized it in a very ugly way. I have stored the pointers of the CPropertySheet and the Page ,which should be activted, at OnInitDialog(). But there must be an easier way to do this. I need this pointers in a functionen which depends to that CPropertyPage, holding the Button. Does there a function extist, which can bring me the pointer of the CPropertySheet? Thanks in advance!

    U 1 Reply Last reply
    0
    • H hph

      Hi, i have a MFC Dialog with a CPropertySheet in it. The CPropertySheet is made of 3 CPropertyPages, and one the these Pages holds a button, which, if pressed shall activate another CPropertyPage. Until now, i realized it in a very ugly way. I have stored the pointers of the CPropertySheet and the Page ,which should be activted, at OnInitDialog(). But there must be an easier way to do this. I need this pointers in a functionen which depends to that CPropertyPage, holding the Button. Does there a function extist, which can bring me the pointer of the CPropertySheet? Thanks in advance!

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

      CPropertySheet* pSheet = (CPropertySheet*)GetParent(); ASSERT_KINDOF(CPropertySheet, pSheet); Then pSheet will be having the Ans for ur query Thanx TAKE CARE

      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