1
我想在选中列表框中的所有项目都未选中时执行一些操作。只有事件ItemCheck,但检查状态只有在ItemCheck事件发生后才会更新。 我有一个按钮,我想要做它的启用假时签入列表框中选中所有项目选中列表框
System::Void frmMain::clbInstPrgs_ItemCheck(System::Object^ sender, System::Windows::Forms::ItemCheckEventArgs^ e) {
if ((clbInstPrgs->CheckedIndices->Count == 1)&&(rbnSelectSaveProgramms->Enabled)) {
btnNext->Enabled = false;
} else {
btnNext->Enabled = true;
}
return;
}
我们真的需要看到一些代码才能回答这个问题.... – 2010-04-12 03:15:21