Fix and reorganize CMainFrame::OnGetMinMaxInfo()
Put common stl headers in stdafx.h