MFC Button按钮的用法

设置按钮为可见或不可见:

GetDlgItem(IDC_CHECK1)->ShowWindow(SW_SHOW);

GetDlgItem(IDC_CHECK1)->ShowWindow(SW_HIDE);

设置按钮为可用或不可用:

先声明Button变量,然后,

m_ButtonPreview.EnableWindow(TRUE);
m_ButtonSave.EnableWindow(FALSE);

你可能感兴趣的:(button)