I have a class X inherited from CView and another class Y inherited
from X.
It seems BEGIN_MESSAGE_MAP does not work in both classes X and Y. Is
that a limitation of MFC or am I doing something wrong?
Thank you
Vaclav
Vaclav:
It should work. In Y.cpp you must have
BEGIN_MESSAGE_MAP(Y, X)
// messages here
END_MESSAGE_MAP()
--
David Wilkinson
Visual C++ MVP
Praise the Lord that Mr. Newcomer is off to some meeting, else you'd
have got a pretty sharp retort about how to do a proper error report
(of course, he'd be absolutely right about it, because you should at
the very least have posted an error message, better even a complete
minimal example).
Regards,
Stuart
Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
It has been working fine for me for years - but note what David Wi.. says
about getting the inheritance right.
Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm
Thank you
Vaclav
<dert...@web.de> píse v diskusním príspevku
news:0d1daf14-0da8-42f4...@y21g2000hsf.googlegroups.com...