-
MFC and templates
I am trying to develop a template class that is derived from CWnd. The class is essentially a container class for hotspots. The problem is that BEGIN_MESSAGE_MAP() doesn't like the class name because it is a template. How can I get around this? Or, baring that, is there a way I can get a non-CWnd derived class to catch mouse message events?
Thanks in advance for your help
-
Re: MFC and templates
If you want to by-pass MFC message handling you should be able to replace their GetMessage/DispatchMessage in the "message pump" by just performing the GetMessage/DispatchMessage yourself. Something tells me this is going to end up pretty nasty though.:-0