CMenu* pMenu=GetSystemMenu(false); UINT nID=pMenu->GetMenuItemID(pMenu->GetMenuItemCount()-1); pMenu->EnableMenuItem(nID,MF_DISABLED);1,是按钮变灰:创建窗口完成后调用 EnableMenuItem (GetSystemMenu(hwnd, FALSE), SC_CLOSE,MF_BYC...