You should have the handler implementation for each menu item , something like here where ID_PAYMENTSEARCH is the id associated to the Search menu item and OnPaymentSearch() and OnUpdatePaymentSearch() are the handlers to be executed:
BEGIN_MESSAGE_MAP(class1, class 2)
ON_COMMAND(ID_PAYMENTSEARCH, OnPaymentSearch)
ON_UPDATE_COMMAND_UI(ID_PAYMENTSEARCH, OnUpdatePaymentSearch)
END_MESSAGE_MAP()
//called when the menu item is clicked.
void Class1::OnPaymentSearch()
{
//LaunchScreen();
}
// called when the menu popup is shown
void Class1::OnUpdatePaymentSearch(CCmdUI* pCmdUI)
{ // some enable/disable conditions
{
pCmdUI->Enable( FALSE );
} else
{
}
}
-obislavu-
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.