Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

messages

Posted on 1998-06-16
3
Medium Priority
?
162 Views
Last Modified: 2013-11-20
Can CEdit, CBitMap, CPen, CPallette handles messages?
Can message handler be written for this classes?
0
Comment
Question by:sunraj
3 Comments
 
LVL 2

Accepted Solution

by:
Belgarat earned 20 total points
ID: 1318072
Win95/NT can send messages only to windows. In addition, MFC allow you to send messages to the thread objects and document objects (and to all objects that inherits CCmdTarget in general, if you code it).
CEdit is a wrapper for edit box window and can accept messages, while the other classes you mentioned are all simple C++ wrappers for groups of API functions operating with graphics and doesn't correspond to any window neither inherit CCmdTarget - the objects can not receive messages.

0
 

Expert Comment

by:wyhjin
ID: 1318073
Try to understand how CCmdTarget got its name.
Reading MFC hierachy chart often to keep the genealogy of MFC family is my way of studying MFC.
0
 

Author Comment

by:sunraj
ID: 1318074
Thank U
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

926 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