mfc學習(三) 消息框禁用控制

void CSslClientDlg::OnEnChangesendbuf() //消息框控制函數,無消息禁用 {CString strMsg; GetDlgItemText(IDC_sendbuf,strMsg); //獲取消息框內容 if(strMsg.IsEmpty()) //爲空禁用 { GetDlgItem(IDC_send)->EnableWindow(FALSE); } else{
相關文章
相關標籤/搜索