Y
Yan Yang
Guest
I have a ribbon interface created with CMFCRibbonBar. There is a "Windows" dropdown button on the ribbon. The list of opened windows are appended to the dropdown list automatically. I would like to add a tick on the selected window name.
The code is what I added below, but it doesn't work.
afx_msg void OnUpdateWindowManager(CCmdUI* pCmdUI);
ON_UPDATE_COMMAND_UI(AFX_IDM_FIRST_MDICHILD, OnUpdateWindowManager)
void CMainFrame::OnUpdateWindowManager(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck(BST_CHECKED);
}
Could you please let me know how to add a tick on the selected window name?
Thanks in advance.
Continue reading...
The code is what I added below, but it doesn't work.
afx_msg void OnUpdateWindowManager(CCmdUI* pCmdUI);
ON_UPDATE_COMMAND_UI(AFX_IDM_FIRST_MDICHILD, OnUpdateWindowManager)
void CMainFrame::OnUpdateWindowManager(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck(BST_CHECKED);
}
Could you please let me know how to add a tick on the selected window name?
Thanks in advance.
Continue reading...