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