المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Can Any Control have it own message map



C++ Programming
01-30-2012, 12:51 PM
Hi,

I have two questions

First

I have CRichEditCtrl inside a CDialog My first question is can a CRichEditCtrl or for that matter any control accept messages or do all control that are part of Dialog have to have thier messages first go to the CDialog and then have The CDialog process the control('s) messages that live within it

Second if a control can process it own messages is all that is need is have

a DECLARE_MESSAGE_MAP() in the control class defination

and then a BEGIN_MESSAGE_MAP to process the messages for the control


Thanks in advance