CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Northeast
    Posts
    6

    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


  2. #2
    Join Date
    May 1999
    Posts
    10

    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
  •  





Click Here to Expand Forum to Full Width

Featured