Solved

Sending notification messages from control

Posted on 2000-02-28
2
187 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now