I would like to subclass (or Attach) a CWnd owned window to my CWnd derived
class.
So far I was able to crash consistently due to
ASSERT(FromHandlePermanent(hWndNew) == NULL);
related problem.
Is there a way for two CWnd objects to coexist on one window handle?
It has to be done this way because of a rather large library so rewriting it
isn't an option.
Thanks in advance.
Igor
http://www.microsoft.com/msj/defaultframe.asp?page=/msj/0199/c++/c++0199.htm
--
Ajay Kalra [MVP - VC++]
ajay...@yahoo.com
"Igor Jarm" <NOigor....@siol.net> wrote in message
news:O2EemG7pCHA.2460@TK2MSFTNGP12...
Thanks a lot Ajay, this works fine and is a good substitute for
CWnd::SubclassWindow.
Is there an easy way to transfer CWnd message mapping to CSubClassWnd or is
it better to just rewrite it?
Thanks again.
Igor Jarm
--
Ajay Kalra [MVP - VC++]
ajay...@yahoo.com
"Igor Jarm" <NOigor....@siol.net> wrote in message
news:OHhLAoCqCHA.1636@TK2MSFTNGP10...