Solved

Sending notification messages from control

Posted on 2000-02-28
2
210 Views
Last Modified: 2013-11-20
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 :)
0
Comment
Question by:Chris1
2 Comments
 
LVL 8

Accepted Solution

by:
gelbert earned 100 total points
ID: 2566132
Use ON_MESSAGE()and user defined message
pass pointer to your structure as one of parameters (WPARAM for exemple)
0
 

Author Comment

by:Chris1
ID: 2566393
Hey thanks.
The easiest things are hard to find in MFC ;)
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ADO Memory leak with DELPHI 2007 37 186
mixString challenge 36 124
EvenOdd challenge 10 109
Sed question 2 87
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question