|
Ajeesh c v wrote: Anybody pls tel me wat will be the reason for it?
It could be any number of things. What change(s) did you make to the .rc file? Can you reverse those changes and see the error go away?
"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
|
|
|
|
|
Can someone give a pointer on how to build a recording and playback functionality on IE ?
Basically i want to record the user actions on a web-page for play back later.The user actions would include webbrowser and html element events.
Is the BHO(browser helper objects) framework a way to do this?
A basic framework overview would be enough to help me proceed.
|
|
|
|
|
Hi,
I have an dialog based application. On which one button is their. I want to move this button depending on circumtences. How to move the button? Can anybody help me out......
Thanks:-
Mike
|
|
|
|
|
MikeRT wrote: How to move the button? Can anybody help me out......
Use MoveWindow().
Nibu thomas
Software Developer
|
|
|
|
|
m_Button.MoveWindow(0,0,100,100);
GetDlgItem(IDC_BUTTON1)->MoveWindow(0,0,100,100);
and also you can keep width and height with GetWindowRect
|
|
|
|
|
If you don't want to change the size of the button, SetWindowPos with SWP_NOSIZE flag specified will be more suitable.
Eg.
m_button.SetWindowPos( 0, x, y, 0, 0, SWP_NOZORDER | SWP_NOSIZE );
- NS -
|
|
|
|
|
hi nimbu thomas,
please provide me a snippet of code. i understand it is exactly correct and correct implementation to change the data exchange for a property sheet. if you provide me a snippet of code i would be very thank full to you.
please understand me.
thanks and regards,
uday.
uday kiran
|
|
|
|
|
kiran janaswamy wrote: nimbu thomas
Nibu thomas .
kiran janaswamy wrote: please provide me a snippet of code. i understand it is exactly correct and correct implementation to change the data exchange for a property sheet. if you provide me a snippet of code i would be very thank full to you.
Did you look up the documentation for QuerySiblings .
Nibu thomas
Software Developer
|
|
|
|
|
hi nimbu thomas.
The Documentation say's
LRESULT QuerySiblings(WPARAM wParam,LPARAM lParam);
and the snippet of code in MSDN
//====================================================================
// Validate the value entered in the Number edit control. If its
// value is not a natural number, request CPropertySheet (i.e. parent
// window of the page) to send a PSM_QUERYSIBLINGS message to each
// LOADED page (a page won't be loaded in memory until it is shown).
// If one of the pages returns a nonzero value in response to the
// PSM_QUERYSIBLINGS message, then inform the user and change the OK
// to Close and disable the Cancel button. CStylePage is a
// CPropertyPage-derived class.
BOOL CStylePage::OnKillActive()
{
int num = GetDlgItemInt(IDC_NUMOBJECTS);
if (num <= 0)
{
if (QuerySiblings(num, 0L))
{
AfxMessageBox("An invalid data is entered. Choose Close
button to close the dialog.");
CancelToClose();
}
}
return CPropertyPage::OnKillActive();
}
// This is an example of trapping the PSM_QUERYSIBLINGS in one of
// the pages. CColorPage is a CPropertyPage-derived class. Upon
// receiving this message, wParam contains the value passed to
// QuerySiblings() call. CColorPage will check this value and return
// FALSE only if the value is greater than 1.
BEGIN_MESSAGE_MAP(CColorPage, CPropertyPage)
// ...
ON_MESSAGE(PSM_QUERYSIBLINGS, OnQuerySiblings)
END_MESSAGE_MAP()
LRESULT CColorPage::OnQuerySiblings( WPARAM wParam, LPARAM lParam )
{
return (wParam <= 0);
}
//========================================================================
but CColorPage is a PropertySheet or PropertyPage getting Confused.
thanks and regards,
uday.
uday kiran
|
|
|
|
|
kiran janaswamy wrote: but CColorPage is a PropertySheet or PropertyPage getting Confused.
It's a property page. If it was a sheet they would have named it CColorSheet . Here it's a CPropertyPage derived class.
Nibu thomas
Software Developer
|
|
|
|
|
|
Thanks Maxwell.
Nibu thomas
Software Developer
|
|
|
|
|
|
:shrugs:
Nibu thomas
Software Developer
|
|
|
|
|
hi nimbu thomas,
yes i got it and i am thankfull to you to give you a good solution.
thanks and regards,
uday.
uday kiran
|
|
|
|
|
kiran janaswamy wrote: hi nimbu thomas
Again?!
His name is Nibu. There is NOT an 'm' in the spelling.
Reference:
Earlier correction[^] by himeself.
Maxwell Chen
-- modified at 4:39 Tuesday 2nd May, 2006
|
|
|
|
|
hi nibu,
i am sorry to spell your name, i am very thank full to give you a valuble solution to me.
thanks and regards,
uday.
uday kiran
|
|
|
|
|
kiran janaswamy wrote: hi nibu,
No, now it's Maxwell Chen. Confusing isn't it ?
|
|
|
|
|
Maxwell Chen
|
|
|
|
|
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
|
|
|
|