1. 程式人生 > >設定按鈕的是否顯示/是否可用

設定按鈕的是否顯示/是否可用

1. GetDlgItem(IDC_ID_CHECK)->EnableWindow(FALSE);
2. 定義BUTTON 的Control型別變數
比如m_Button;
m_Button.EnableWindow(TRUE);//可用
m_Button.EnableWindow(FALSE);//不可用
m_Button.ShowWindow(SW_SHOW);//可見
m_Button.ShowWindow(SW_HIDE);/不可見