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
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