Solved

messages

Posted on 1998-06-16
3
158 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 10 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Installing Microsoft R server on REDHAT or SUSE Linux 4 147
Change owner from userA to server Local Administrators 7 66
sameEnds challenge 3 180
Capture logon name 13 88
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. …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 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