Click here to Skip to main content
16,005,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPlayback functionality in IE Pin
rana741-May-06 22:15
rana741-May-06 22:15 
QuestionHow to move the button? Pin
MikeRT1-May-06 20:56
MikeRT1-May-06 20:56 
AnswerRe: How to move the button? Pin
Nibu babu thomas1-May-06 21:02
Nibu babu thomas1-May-06 21:02 
AnswerRe: How to move the button? Pin
Hamid_RT1-May-06 21:20
Hamid_RT1-May-06 21:20 
AnswerRe: How to move the button? Pin
Nishad S1-May-06 21:24
Nishad S1-May-06 21:24 
GeneralRe: How to access a controls in property sheet. Pin
kiran janaswamy1-May-06 20:56
kiran janaswamy1-May-06 20:56 
GeneralRe: How to access a controls in property sheet. Pin
Nibu babu thomas1-May-06 21:01
Nibu babu thomas1-May-06 21:01 
GeneralRe: How to access a controls in property sheet. Pin
kiran janaswamy1-May-06 21:06
kiran janaswamy1-May-06 21:06 
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
GeneralRe: How to access a controls in property sheet. Pin
Nibu babu thomas1-May-06 21:24
Nibu babu thomas1-May-06 21:24 
GeneralRedirection Pin
Maxwell Chen1-May-06 22:44
Maxwell Chen1-May-06 22:44 
GeneralRe: Redirection Pin
Nibu babu thomas1-May-06 22:45
Nibu babu thomas1-May-06 22:45 
QuestionRe: How to access a controls in property sheet. Pin
Hamid_RT1-May-06 21:22
Hamid_RT1-May-06 21:22 
AnswerRe: How to access a controls in property sheet. Pin
Nibu babu thomas1-May-06 21:25
Nibu babu thomas1-May-06 21:25 
GeneralRe: How to access a controls in property sheet. Pin
kiran janaswamy1-May-06 22:25
kiran janaswamy1-May-06 22:25 
GeneralShow your respect. Pin
Maxwell Chen1-May-06 22:35
Maxwell Chen1-May-06 22:35 
GeneralRe: How to access a controls in property sheet. Pin
kiran janaswamy1-May-06 22:41
kiran janaswamy1-May-06 22:41 
JokeRe: How to access a controls in property sheet. Pin
Cedric Moonen1-May-06 22:45
Cedric Moonen1-May-06 22:45 
GeneralRe: How to access a controls in property sheet. Pin
Maxwell Chen1-May-06 22:51
Maxwell Chen1-May-06 22:51 
GeneralRe: How to access a controls in property sheet. Pin
Hamid_RT1-May-06 22:40
Hamid_RT1-May-06 22:40 
GeneralRe: How to access a controls in property sheet. Pin
kiran janaswamy1-May-06 23:45
kiran janaswamy1-May-06 23:45 
GeneralRe: How to access a controls in property sheet. Pin
Nibu babu thomas1-May-06 23:49
Nibu babu thomas1-May-06 23:49 
GeneralRe: How to access a controls in property sheet. Pin
kiran janaswamy1-May-06 23:55
kiran janaswamy1-May-06 23:55 
GeneralRe: How to access a controls in property sheet. Pin
Nibu babu thomas2-May-06 0:05
Nibu babu thomas2-May-06 0:05 
GeneralRe: How to access a controls in property sheet. Pin
kiran janaswamy2-May-06 0:11
kiran janaswamy2-May-06 0:11 
QuestionHow to access a controls in property sheet. Pin
kiran janaswamy1-May-06 20:50
kiran janaswamy1-May-06 20:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.