Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Menu command handler not called
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Menu command handler not called

 Post Reply Post Reply
Author
Message Reverse Sort Order
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Topic: Menu command handler not called
    Posted: 10 May 2023 at 4:03am
I wanted to try adding a new command handler to the GUI_VisualStudio sample.
The "Project - Add Class..." menu command has ID 182

I added this line:
ON_COMMAND(182, Test_Command)

to the message map of CMainFrame

The handler:
void CMainFrame::Test_Command()
{
AfxMessageBox(L"Test_Command");
}
It does not work.

Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.