Print Page | Close Window

Menu command handler not called

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24391
Printed Date: 13 October 2024 at 12:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Menu command handler not called
Posted By: vjedlicka
Subject: Menu command handler not called
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net