void CMainFrame::ActivateFrame(int nCmdShow) { CFrameWndEx::ActivateFrame(nCmdShow); // make sure and display the toolbar, ruler, etc while loading a document. OnIdleUpdateCmdUI(0, 0); UpdateWindow(); }
void CControlBar::OnInitialUpdate() { // update the indicators before becoming visible OnIdleUpdateCmdUI(TRUE, 0L); }