这个很简单,
在CMainFrm中重载PreCreateWindow函数
BOOL CMyChildWnd::PreCreateWindow(CREATESTRUCT& cs) 

    // Create a child window without the maximize button 
    cs.style &= ~WS_MAXIMIZEBOX;     // Call the base-class version
    return CMDIChildWnd::PreCreateWindow(cs); 
}