// !!!! This was the code that was needed in MFC and BCG Standard !!!!
//m_pwndFullScreenBar->DestroyWindow();
//delete m_pwndFullScreenBar; m_pwndFullScreenBar = NULL;
// !!!!!!!!
m_bFullScreen = false;
{ // This is a workaround to prevent the toolbars from being broken
// into different rows, when the window is maximized and
// the restored position is too small.
WINDOWPLACEMENT wpNew(m_wpPrev);
VERIFY(::CopyRect(&wpNew.rcNormalPosition, &m_rectFullScreenWindow));
VERIFY(SetWindowPlacement(&wpNew));
}