Advertisement

07.01.2008 at 02:24AM PDT, ID: 23529486
[x]
Attachment Details

Parent NOT Receiving Message

Asked by rickatseasoft in Windows MFC Programming

I have a modeless dialog that allows users to find NEXT|PREV|QUIT that pops up after a find request using a find dialog.  It is created using
    pFindAgain=new CFindAgain(this);

Within that dialog, initially, I cast pParent to the actual parent class, and called the appropriate methods within the parent as in m_pParent->FindNext().  Unfortunately, I now would like to use this modeless dialog with multiple types of parents, so I did away with the cast (this is now a CWnd *)created unique messages such as XXX_FIND_NEXT, XXX_FIND_PREV, and XXX_FIND_QUIT, and in the dialog, when a user presses the button, send the appropriate message as in

m_pParent->SendMessage(XXX_FIND_QUIT);

I can confirm that "this" is the value of the CView that is the parent, and that the messages are being sent, but I can't see them in PreTranslateMessage, nor do they seem to have any effect on the parent at all.

In PreTranslateMessage, I'm using
if(pMsg->message==XXX_FIND_NEXT||pMsg->message==XXX_FIND_PREV||pMsg->message==XXX_FIND_QUIT){
   dummy code with a BREAKPOINT
}
The breakpoint is never reached.

It is probably something goofy, but I can't see it.

Thanks, Rick

Start Free Trial
[+][-]07.01.2008 at 02:29AM PDT, ID: 21906040

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 02:32AM PDT, ID: 21906049

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 02:39AM PDT, ID: 21906077

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 02:42AM PDT, ID: 21906089

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows MFC Programming
Sign Up Now!
Solution Provided By: mahesh1402
Participating Experts: 4
Solution Grade: A
 
 
[+][-]07.01.2008 at 02:53AM PDT, ID: 21906127

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 02:55AM PDT, ID: 21906137

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 01:46AM PDT, ID: 21914456

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 08:41AM PDT, ID: 21917550

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 08:41AM PDT, ID: 21917552

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 03:57PM PDT, ID: 21921561

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 04:50PM PDT, ID: 21921789

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.03.2008 at 01:12AM PDT, ID: 21923550

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 05:10AM PDT, ID: 21932597

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 05:20AM PDT, ID: 21932651

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 05:28AM PDT, ID: 21932690

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 06:00AM PDT, ID: 21932859

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 06:08AM PDT, ID: 21932899

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 01:06AM PDT, ID: 21936287

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628