|
-
May 27th, 1999, 01:41 PM
#1
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
-
May 27th, 1999, 03:27 PM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|