User defined message management on MFC 7.1

P

Poat

I'm looking for a way to manage user defined message on MFC.

I'm working on a tree control and need to communicate with the view. I
was told to use message as a way to communicate.

So far i have managed to define my message :

#define MSG_PERSONSELECTION WM_USER + 1

then in the MessageMapping I have something like this :

ON_MESSAGE(MSG_PERSONSELECTION, OnPersonSelection)

In OnPersonSelection i simply call
GetParent()->SendMessage(/* the message */,...);

This is where im stuck at the moment , how do I get the view to
intercept the message ????

any help will be useful

thx

Poat
 
R

red floyd

Poat said:
I'm looking for a way to manage user defined message on MFC.

[redacted]

Wrong group. Try one of the microsoft.public groups. You can find them
at news.microsoft.com.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top