Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. problem with message handler invocation..

problem with message handler invocation..

Scheduled Pinned Locked Moved ATL / WTL / STL
helpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harishv
    wrote on last edited by
    #1

    :confused:Hi, I have added a menuitem to the systemmenu as.. xMenu.InsertItem(0, MF_POSITION, ID_SETTINGS, "&Settings"); Also, I have added a command handler as.. COMMAND_ID_HANDLER(ID_SETTINGS, OnSettings) When I run the program, I can see the new menu item but when I click on it, the function OnSettings() doesn't get called!! What am I missing here? thanx in advance HV

    S H 2 Replies Last reply
    0
    • H harishv

      :confused:Hi, I have added a menuitem to the systemmenu as.. xMenu.InsertItem(0, MF_POSITION, ID_SETTINGS, "&Settings"); Also, I have added a command handler as.. COMMAND_ID_HANDLER(ID_SETTINGS, OnSettings) When I run the program, I can see the new menu item but when I click on it, the function OnSettings() doesn't get called!! What am I missing here? thanx in advance HV

      S Offline
      S Offline
      Simon W 0
      wrote on last edited by
      #2

      make sure whether the menu message is send to your window I am seeking... For what? Why did you ask me for what? I don't know!

      1 Reply Last reply
      0
      • H harishv

        :confused:Hi, I have added a menuitem to the systemmenu as.. xMenu.InsertItem(0, MF_POSITION, ID_SETTINGS, "&Settings"); Also, I have added a command handler as.. COMMAND_ID_HANDLER(ID_SETTINGS, OnSettings) When I run the program, I can see the new menu item but when I click on it, the function OnSettings() doesn't get called!! What am I missing here? thanx in advance HV

        H Offline
        H Offline
        Hans Ruck
        wrote on last edited by
        #3

        You need to handle WM_SYSCOMMAND. Use MESSAGE_HANDLER. rechi

        H 1 Reply Last reply
        0
        • H Hans Ruck

          You need to handle WM_SYSCOMMAND. Use MESSAGE_HANDLER. rechi

          H Offline
          H Offline
          harishv
          wrote on last edited by
          #4

          that worked, thanx HV

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups