Thomas Stockbruegger
asked on
Call Menu Function OnUpdate
Hello,
I would like to call a Menu Update Function in CMainFrame from another Function:
My Update Function is:
void CMainFrame::OnUpdate_Auflo esung1280x 1024(CCmdU I *pCmdUI)
{
pCmdUI->SetCheck(m_Aufloes ungAuswahl ==CMainFra me::Auswah l_1);
}
This will be called if I choose this menu.....and the check box will set in this menu.
How can I call this Function from another Function in CMainFrame?
Please let me know.
Thank you.
500 points.
Best regards,
Thomas
I would like to call a Menu Update Function in CMainFrame from another Function:
My Update Function is:
void CMainFrame::OnUpdate_Auflo
{
pCmdUI->SetCheck(m_Aufloes
}
This will be called if I choose this menu.....and the check box will set in this menu.
How can I call this Function from another Function in CMainFrame?
Please let me know.
Thank you.
500 points.
Best regards,
Thomas
This function should be called automatically when the menu is displayed - you don't have any need to call it yourself. Do you mean you need to set the value of m_AufloesungAuswahl from elsewhere but don't know how to?
ASKER
yes... that do I mean....and I think I found the answer.
m_AufloesungAuswahl=1;
will do the trick
m_AufloesungAuswahl=1;
will do the trick
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
okay...thanks...sometimes you only need a hint