Thread: custom message map in MFC

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    170

    custom message map in MFC

    I am trying to get my app to respond to clicks on the systray. I am sure there is an easy way to do this, but I am having no luck.

    I followed the msdn example, in fact I am using the exact code. But the On_MYWM_NOTIFYICON function is never called.

    I have been playing with the message map but everything I try just bombs out and won't compile.

    Anyone have any experience in this area? I can post my code if you need to see it, but it is word for word the msdn example for the systray.
    Best Regards,

    Bonkey

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Do a search on Google for the message. I could post the solution when I have access to source code at my home workstation.

    Kuphryn

  3. #3
    Registered User
    Join Date
    Aug 2002
    Posts
    170
    I found an article telling me to override windowProc. That works.

    Now I just have to clean up the app to get rid of the taskbar icon. Almost done now.
    Best Regards,

    Bonkey

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem in message handling VC++
    By 02mca31 in forum Windows Programming
    Replies: 5
    Last Post: 01-16-2009, 09:22 PM
  2. Polynomials and ADT's
    By Emeighty in forum C++ Programming
    Replies: 20
    Last Post: 08-19-2008, 08:32 AM
  3. input/output
    By dogbert234 in forum Windows Programming
    Replies: 11
    Last Post: 01-26-2005, 06:57 AM
  4. Replies: 1
    Last Post: 05-23-2002, 11:19 PM
  5. Custom Command Routing :: MFC
    By kuphryn in forum Windows Programming
    Replies: 1
    Last Post: 04-26-2002, 02:18 AM