对话框初始化时
CDialog* dlg ;CYourDialog* dlg; 你的对话框指针
void EnableButton(CDialog* dlg, UINT button_id, BOOL enable) { ASSERT(dlg); CWnd* button = dlg->GetDlgItem(button_id); ASSERT(button); if(button) button->EnableWindow(enable); }
15,981
社区成员
115,868
社区内容
加载中
试试用AI创作助手写篇文章吧