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. Problem in QuerySibling of the PropertyPage Urgent Please

Problem in QuerySibling of the PropertyPage Urgent Please

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 Posts 1 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 am getting problem on QuerySibling(...) method of PropertyPage please tell me, i am writing QuerySibling(...) method in PropertyPage named two and sending some Data to PropertyPage three where i am collecting the Data. But in first time the Page is not able to Transfer the Data to ThirdPage. here is the snippet of code. second page: ------------------------------------------------------------------------------ BOOL two::OnSetActive() { CStringArray abc; abc.RemoveAll(); abc.Add("1"); abc.Add("2"); abc.Add("3"); abc.Add("4"); abc.Add("5"); if(QuerySiblings(1,(LPARAM)&abc)){ //Sending Data to Third Page CancelToClose(); } return CPropertyPage::OnSetActive(); } /----------------------------------------------------------------------------- third Page: LRESULT three::OnQuerySiblings( WPARAM wParam, LPARAM lParam ) { switch(wParam) { case 1: CStringArray* pString = (CStringArray*)lParam; if(str1.GetSize() > 0) //Remove all the Map Values str1.RemoveAll(); for(int i =0;i< pString->GetSize();i++) str1.Add(pString->GetAt(i)); //Collecting Data from Page Two !!! pString->RemoveAll(); break; } return Default(); } /----------------------------------------------------------------------------- for the first time i am not able see the Reflected Data in Page Three after traversal of page2 (two) to page3 (three) twice only i am getting the data. but in MSDN he has given the only method to be change the data from one property page to another property page. please let me know it is urgent!!!!!!!!!. help me out. uday. uday kiran

    K 1 Reply Last reply
    0
    • K kiran janaswamy

      hi all, i am getting problem on QuerySibling(...) method of PropertyPage please tell me, i am writing QuerySibling(...) method in PropertyPage named two and sending some Data to PropertyPage three where i am collecting the Data. But in first time the Page is not able to Transfer the Data to ThirdPage. here is the snippet of code. second page: ------------------------------------------------------------------------------ BOOL two::OnSetActive() { CStringArray abc; abc.RemoveAll(); abc.Add("1"); abc.Add("2"); abc.Add("3"); abc.Add("4"); abc.Add("5"); if(QuerySiblings(1,(LPARAM)&abc)){ //Sending Data to Third Page CancelToClose(); } return CPropertyPage::OnSetActive(); } /----------------------------------------------------------------------------- third Page: LRESULT three::OnQuerySiblings( WPARAM wParam, LPARAM lParam ) { switch(wParam) { case 1: CStringArray* pString = (CStringArray*)lParam; if(str1.GetSize() > 0) //Remove all the Map Values str1.RemoveAll(); for(int i =0;i< pString->GetSize();i++) str1.Add(pString->GetAt(i)); //Collecting Data from Page Two !!! pString->RemoveAll(); break; } return Default(); } /----------------------------------------------------------------------------- for the first time i am not able see the Reflected Data in Page Three after traversal of page2 (two) to page3 (three) twice only i am getting the data. but in MSDN he has given the only method to be change the data from one property page to another property page. please let me know it is urgent!!!!!!!!!. help me out. uday. uday kiran

      K Offline
      K Offline
      kiran janaswamy
      wrote on last edited by
      #2

      hi all, its just "PSP_PREMETURE" flag before the Property sheet is Shown. I got It. uday. uday kiran

      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