When you maximize a minimized CFrameWndEx window on a multi-monitor system it is resized according to the resolution of the left-most monitor, even if the window is not located on the left-most monitor. This only happens when the Office 2007 application look is used.
This caused by the fact that CFrameImpl::OnGetMinMaxInfo uses the window rectangle to determine which monitor should be used to determine the maximized size. When the window is minimized the top-left point of the rectangle returned by GetWindowRect is (-32000, -32000). When this rectangle is used to determine the monitor the left-most monitor is returned.
Replacing "MonitorFromPoint(rectWindow.CenterPoint(), MONITOR_DEFAULTTONEAREST)" with "MonitorFromWindow(m_pFrame->m_hWnd, MONITOR_DEFAULTTONEAREST)" in CFrameImpl::OnGetMinMaxInfo seems to fix this bug.