Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

messages

Can CEdit, CBitMap, CPen, CPallette handles messages?
Can message handler be written for this classes?
0
sunraj
Asked:
sunraj
1 Solution
 
BelgaratCommented:
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
 
wyhjinCommented:
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
 
sunrajAuthor Commented:
Thank U
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now