Sending notification messages from control

I want to create my own control based on CWnd, how do I send a notification message to the parent that contains my own data structure, lets say an int, and how do I intercept it in the parent window, like the On<....> messages from MFC controls?
Thanks a lot :)
Chris1Asked:
Who is Participating?
 
gelbertCommented:
Use ON_MESSAGE()and user defined message
pass pointer to your structure as one of parameters (WPARAM for exemple)
0
 
Chris1Author Commented:
Hey thanks.
The easiest things are hard to find in MFC ;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.