How to add a tick for the selected window name on the ribbon?

  • Thread starter Thread starter Yan Yang
  • Start date Start date
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.

1543977.png

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...
 
Back
Top