Click here to Skip to main content
15,892,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Bit-Shifting - What is it? Pin
12-Feb-02 8:17
suss12-Feb-02 8:17 
Generalstatic_cast error Pin
RobJones12-Feb-02 6:30
RobJones12-Feb-02 6:30 
GeneralRe: static_cast error Pin
pba_12-Feb-02 6:38
pba_12-Feb-02 6:38 
GeneralRe: static_cast error Pin
RobJones12-Feb-02 6:48
RobJones12-Feb-02 6:48 
GeneralOne simple question => Pin
12-Feb-02 4:39
suss12-Feb-02 4:39 
GeneralRe: One simple question => Pin
Ravi Bhavnani12-Feb-02 5:08
professionalRavi Bhavnani12-Feb-02 5:08 
GeneralRe: One simple question => Pin
12-Feb-02 5:21
suss12-Feb-02 5:21 
GeneralRe: One simple question => Pin
Kashif Manzoor12-Feb-02 5:41
Kashif Manzoor12-Feb-02 5:41 
To send a message use

// see help of PostMessage for parameter options


#define WM_GENNIE_LEARN_MODE 2000 // use any id as you desire

PostMessage(WM_GENNIE_LEARN_MODE);

Now in the message map of the class where you want the message to be captured (namely the parent class in your case) make an entry in the BEGIN_MESSAGE_MAP section as given below


IMPLEMENT_DYNCREATE(..., ...)

BEGIN_MESSAGE_MAP(... , ...)
//{{AFX_MSG_MAP(CDict1View)

ON_MESSAGE(WM_GENNIE_LEARN_MODE,OnGennieLearnMode)

//}}AFX_MSG_MAP
END_MESSAGE_MAP()


Now declare the handler function, as given below

//{{AFX_MSG(CDict1View)

afx_msg LRESULT OnGennieLearnMode(WPARAM wParam, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()

and define it as

LRESULT YourParentClassName::OnGennieLearnMode(WPARAM wParam, LPARAM lParam)
{
// blah blah blah ...
return ...;
}

/**********************/
The above code will send a message WM_GENNIE_LEARN_MODE to the parent window where it would be handled by the function OnGennieLearnMode(). In your case you would sen the DBLCLICK message, and handle it in your own handler function.

hope it helps,
-cheers
-kashif manzoor


peace to all
GeneralThanx Pin
12-Feb-02 22:24
suss12-Feb-02 22:24 
GeneralGrouping Data Pin
12-Feb-02 4:31
suss12-Feb-02 4:31 
GeneralRe: Grouping Data Pin
Mazdak12-Feb-02 4:39
Mazdak12-Feb-02 4:39 
Generalproblem opening files in application Pin
Stew12-Feb-02 4:21
Stew12-Feb-02 4:21 
GeneralRe: problem opening files in application Pin
Nish Nishant12-Feb-02 5:16
sitebuilderNish Nishant12-Feb-02 5:16 
GeneralRe: problem opening files in application Pin
12-Feb-02 7:03
suss12-Feb-02 7:03 
GeneralMs Word Automation and ActiveX Pin
Braulio Dez12-Feb-02 3:48
Braulio Dez12-Feb-02 3:48 
QuestionHow to remove this small error with sprintf Pin
tppradeep1812-Feb-02 1:26
tppradeep1812-Feb-02 1:26 
AnswerRe: How to remove this small error with sprintf Pin
Christian Graus12-Feb-02 1:33
protectorChristian Graus12-Feb-02 1:33 
GeneralRe: How to remove this small error with sprintf Pin
tppradeep1812-Feb-02 1:43
tppradeep1812-Feb-02 1:43 
AnswerRe: How to remove this small error with sprintf Pin
Kashif Manzoor12-Feb-02 2:01
Kashif Manzoor12-Feb-02 2:01 
GeneralRe: How to remove this small error with sprintf Pin
tppradeep1812-Feb-02 20:10
tppradeep1812-Feb-02 20:10 
AnswerRe: How to remove this small error with sprintf Pin
Atul Dharne12-Feb-02 7:02
Atul Dharne12-Feb-02 7:02 
GeneralPrinter connection Pin
Stan the man12-Feb-02 1:05
Stan the man12-Feb-02 1:05 
GeneralRe: Printer connection Pin
Bernhard12-Feb-02 4:20
Bernhard12-Feb-02 4:20 
GeneralNT service in dll Pin
Don Miguel12-Feb-02 0:48
Don Miguel12-Feb-02 0:48 
GeneralRe: NT service in dll Pin
Mazdak12-Feb-02 3:33
Mazdak12-Feb-02 3:33 

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.