How to handle View->Toolbar menu option? RRS feed

  • Question

  • I want to handle view->toolbar on/off. For that I am doing message-mapping by toolbar's id available[for me its 59392].

    But its not calling the function I attached with the id.




    Monday, July 18, 2011 12:18 PM

All replies

  • Have you accidently mapped the handler is the wrong class?

    Make sure the handler belongs to the view class.

    Microsoft MVP (Visual C++)

    Polymorphism in C
    Monday, July 18, 2011 8:23 PM
  • Add WM_COMMAND message handler correct ?
    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.
    Tuesday, July 19, 2011 12:13 AM
  • Hi,

    Yes I have written it in View class only,

    I am calling through On_Command,is it wrong?

    I am not getting clue


    Tuesday, July 19, 2011 3:43 AM
  • Post your

    1. Message Map entry,
    2. Function signature
    3. ID definitions macro

    This is supposed to be a simple mistake.

    Saint Atique

    Tuesday, July 19, 2011 10:39 AM