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. C / C++ / MFC
  4. WM_COMMAND is not getiing fired

WM_COMMAND is not getiing fired

Scheduled Pinned Locked Moved C / C++ / MFC
2 Posts 2 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.
  • V Offline
    V Offline
    VC_RYK
    wrote on last edited by
    #1

    Dear All, I have a main modeless dialogbox created by CreateDialog and have another child model dialog box created by DialogBox and on this child window I have many button but when I am clicking on any button WM_COMMAND is not getting fired in winproc of child dialog. I will be very thankful for your support. With regards RYK

    A 1 Reply Last reply
    0
    • V VC_RYK

      Dear All, I have a main modeless dialogbox created by CreateDialog and have another child model dialog box created by DialogBox and on this child window I have many button but when I am clicking on any button WM_COMMAND is not getting fired in winproc of child dialog. I will be very thankful for your support. With regards RYK

      A Offline
      A Offline
      Andrew Brock
      wrote on last edited by
      #2

      There is only a few reasons I can think of why this is happening: 1. Make sure you are looking in the right place for the message. I know it seems trivial, but it happens to everyone. 2. Make sure you set the right MsgProc for the child dialog. 3. Make sure something else isn't replacing the MsgProc for the child dialog (such as MFC) Spy++ is distributed with Visual Studio, and can be found under the tools menu. Follow these steps to debug using Spy++. Run your program and open the child dialog where the problems are Start Spy++ from the Tools menu Find your child dialog window, either in the list or using the find window toolbar icon Right click on your child dialog window in the list and select Messages Click some buttons in your program to see if they show up in the list You can also check things like check the memory address of the MsgProc and window styles by selecting properties from the right click menu.

      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