Click to See Complete Forum and Search --> : MFC and templates


DFarrell
May 27th, 1999, 01:41 PM
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

VestyBoy
May 27th, 1999, 03:27 PM
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