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 to access a controls in property sheet.

How to access a controls in property sheet.

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 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.
  • K Offline
    K Offline
    kiran janaswamy
    wrote on last edited by
    #1

    hi all, i want to access the control values from one property sheet in another property sheet. (ie) if i am having three property pages and i want to get the control values of the first property page in second how can i achieve it. please provide the solution. i am giving a snippet of code. //============================== CPropertySheet dlg(_T("Hellow"), this, 0); one a; two b; three c; dlg.AddPage(&a); dlg.AddPage(&b); dlg.AddPage(&c); dlg.DoModal(); //================================= where one,two,three are the the PropertyPages where each property page contains its controls, i want to access this values in different pages. please provide me a solution. one solution is using global variable and set the values into globals but i dont want to use any global variables. thanks and regards, uday. uday kiran

    N D 2 Replies Last reply
    0
    • K kiran janaswamy

      hi all, i want to access the control values from one property sheet in another property sheet. (ie) if i am having three property pages and i want to get the control values of the first property page in second how can i achieve it. please provide the solution. i am giving a snippet of code. //============================== CPropertySheet dlg(_T("Hellow"), this, 0); one a; two b; three c; dlg.AddPage(&a); dlg.AddPage(&b); dlg.AddPage(&c); dlg.DoModal(); //================================= where one,two,three are the the PropertyPages where each property page contains its controls, i want to access this values in different pages. please provide me a solution. one solution is using global variable and set the values into globals but i dont want to use any global variables. thanks and regards, uday. uday kiran

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      Use QuerySiblings.


      Nibu thomas Software Developer

      1 Reply Last reply
      0
      • K kiran janaswamy

        hi all, i want to access the control values from one property sheet in another property sheet. (ie) if i am having three property pages and i want to get the control values of the first property page in second how can i achieve it. please provide the solution. i am giving a snippet of code. //============================== CPropertySheet dlg(_T("Hellow"), this, 0); one a; two b; three c; dlg.AddPage(&a); dlg.AddPage(&b); dlg.AddPage(&c); dlg.DoModal(); //================================= where one,two,three are the the PropertyPages where each property page contains its controls, i want to access this values in different pages. please provide me a solution. one solution is using global variable and set the values into globals but i dont want to use any global variables. thanks and regards, uday. uday kiran

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

        Create a class/struct that represents all of the data for each of the pages. Create an instance of this class/struct in the property sheet. Each time a page is activated, it will query this class/struct to initialize the controls. Each time a page is deactivated, it will update the class/struct with the control values. Make sense?


        "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

        "We will be known forever by the tracks we leave." - Native American Proverb

        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