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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
gelbertConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.