// Get the frame window for this view CChildFrame* ViewFrame = static_cast(GetParentFrame()); // Build the message string CString StatusMsg("View Scale:"); StatusMsg += static_cast('0' + m_Scale); // Write the string to the status bar ViewFrame->m_StatusBar.GetStatusBarCtrl().SetText( StatusMsg, 0, 0 );