WM_COMMAND is not getiing fired
-
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
-
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
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.