Add function GetMinMaxInfo () in the code below:
void CMainFrame::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
{
// the minimum to the maximum trace trace settings to the same value so that the window size can not be changed
lpMMI-> ptMinTrackSize.x = 500; // set the minimum track width
lpMMI-> ptMinTrackSize.y = 400; // set the minimum height of the track
lpMMI-> ptMaxTrackSize.x = 500; // set the maximum track width
lpMMI-> ptMaxTrackSize.y = 400; // set the maximum height Tracking
CFrameWnd::OnGetMinMaxInfo(lpMMI);
}