|
yes Maxwell Chen
kiran janaswamy his name is Nibu only Nibu and nothing
Ok!
|
|
|
|
|
hi nibu,
I have got using QuerySibLings(...) but I am not able to See the Values of the Second Property Page Values to Third Property Page when changed for the First Time and there by there is no problem. Yes i have checked righ now.
snippet of the Code.
//=====================================================
BOOL two::OnKillActive()
{
CStringArray abc;
abc.RemoveAll();
abc.Add("1");
abc.Add("2");
abc.Add("3");
abc.Add("4");
abc.Add("5");
abc.Add("6");
abc.Add("7");
abc.Add("8");
QuerySiblings(1,(LPARAM)&abc); // Pass to the Third Page Values !!!!!
return CPropertyPage::OnKillActive();
}
//===========================================================================
third snippet of code
//===========================================================================
LRESULT three::OnQuerySiblings( WPARAM wParam, LPARAM lParam )
{
switch(wParam)
{
case 1:
CStringArray* pString = (CStringArray*)lParam;
for(int i =0;i< pString->GetSize()-1;i++){
str1.Add(pString->GetAt(i)); }
pString->RemoveAll();
break;
}
return 0;
}
BOOL three::OnSetActive()
{
for(int i =0;i< str1.GetSize()-1;i++)
{
MessageBox(str1.GetAt(i));
}
str1.RemoveAll();
return CPropertyPage::OnSetActive();
}
//========================================================================
actually what is the problem with the property page why first time it is not prompting a Message Box. please let me know.
uday kiran
|
|
|
|
|
Which page is active??
Nibu thomas
Software Developer
|
|
|
|
|
hi nibu,
i am having three property pages. Of which fist page is by defalt. But first time i am losing the focus from second page to Third the values are not Passing for first time and from next time it is giving the values. please let me know
thanks and regards,
uday.
uday kiran
|
|
|
|
|
Does it call the third page's OnQuerySiblings ...
Nibu thomas
Software Developer
|
|
|
|
|
hi nibu,
it called by first time it has not gone to OnQuerySibling(...) method. Only first time it is not getting the values from next it is fine.
I am unable to see the values in the First time only!!!! after wards there is no problem it is comming.
please let me know and also i am also checking mean while.
thanks and regards,
uday.
uday kiran
|
|
|
|
|
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
|
|
|
|
|
Use QuerySiblings .
Nibu thomas
Software Developer
|
|
|
|
|
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
|
|
|
|
|
Hi ,
The bounding rectangle of my line string is changed and updated for the line object. This line object has array of points. I want to move/update those points too by the same offset, how may I achieve this?
Leya
|
|
|
|
|
hi all,
i am having a two DateTimePicker Control, i have selected Two Dates from that and put in a EditBox how to compare the Dates from the EditBox. Is this Possible with COleDateTime, if possible then please provide a snippet of Code.
thanks,
uday.
uday kiran
|
|
|
|
|
|
kiran janaswamy wrote: how to compare the Dates from the EditBox. Is this Possible with COleDateTime
Yes.
kiran janaswamy wrote: if possible then please provide a snippet of Code
COleDateTime dateOne(95, 3, 15, 12, 0, 0);
COleDateTime dateTwo(dateOne);
BOOL b;
b = dateOne == dateTwo;
dateTwo.SetStatus(COleDateTime::invalid);
b = dateOne == dateTwo;
b = dateOne != dateTwo;
b = dateOne < dateTwo;
b = dateOne > dateTwo;
b = dateOne <= dateTwo;
b = dateOne >= dateTwo;
And how to convert a string to COleDateTime object??
Use ParseDateTime .
Nibu thomas
Software Developer
|
|
|
|
|
hi nibuthomas,
if i have selected two dates from DateandTime Picker Control and put it in EditBox. this values are in the CString Format but they are not in COleDateTimeControl then how to Compare it. please provide a Solution for that.
thanks,
uday.
uday kiran
|
|
|
|
|
Take a look at ParseDateTime and please kindly look up the documentation for further details.
Nibu thomas
Software Developer
|
|
|
|
|
hi nimuthomas,
i got it and many thanks to provide a solution. i am lucky.
thanks and regards,
uday.
uday kiran
|
|
|
|
|
"search for some nodes in the reamining area"
"finds the next nodes in the cal"
|
|
|
|
|
Please elaborate!
Nibu thomas
Software Developer
|
|
|
|
|
"search for some nodes in the reamining area"
I not found "reamining" in dictionary, so i don't know that meaning of "reamining"?
|
|
|
|
|
it is probably "remaining" which would mean the area that is left.
|
|
|
|
|
umm.
remaining ?= reamining
|
|
|
|
|
FlyWithYou wrote: search for some nodes in the reamining area
it must be a typo, its "remaining area" i think
Master.. Master.. where are the dreams that i've been after...
|
|
|
|
|
But there are more than 53000 entries found via Google for this word "reamining".
reamining[^]
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: 53000 entries
Lol. This could be a favorite typo for everybody.
Nibu thomas
Software Developer
|
|
|
|
|
Nibu thomas wrote: a favorite typo
You know what?! I was tickling and thought it something like re-amin-ing. Then were there such a word "amin" or "amine" ...
Maxwell Chen
|
|
|
|