//窗口控件操作:增加最小化按鈕
//從向導中取得某個子窗口:
CWnd * pWnd = theApp.m_pMainSheet->GetDlgItem( IDCANCEL);
if ( pWnd) pWnd->EnableWindow( FALSE);
//取得系統菜單項:
CMenu* pSysMenu = theApp.m_pMainSheet->GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
//{{{
//從向導中取得當前活動的屬性窗口:
DWord dwStysle = theApp.m_pMainWnd->GetActiveWindow()->GetStyle();
theApp.m_pMainWnd->GetActiveWindow()->ModifyStyle(WS_MAXIMIZEBOX, dwStysle|WS_MINIMIZEBOX);
theApp.m_pMainWnd->GetActiveWindow()->DrawMenuBar();
//}}}
//Disable SC_CLOSE:
pSysMenu->ModifyMenu(1,MF_BYPOSITION | MF_GRAYED);