你有没有msdn啊int GetCheck( int nIndex );Return Value Zero if the item is not checked, 1 if it is checked, and 2 if it is indeterminate.ParametersnIndex Index of the item whose check status is to be retrieved.Res Call this function to determine the check state of an item.用它来判断某项有没有被check,然后做你该做的事
[] .log
[] .,\
[] .skldjf
就这样的那个东西~!
CListBox
换成
CCheckListBox
就可以了
能不能说具体点????是mfc封装的类??怎么用啊!~~~ 还是控件??
然后再DLG头文件中定义CCheckListBox m_list;
再OnInitDialog()中
m_list.SubclassWindow(GetDlgItem(IDC_LIST1)->m_hWnd);
m_list.AddString("ssss1");
m_list.AddString("ssss2");
m_list.AddString("ssss3");
m_list.AddString("ssss4");
哦,对了,如果选中了,在主窗口内要进行删除ssss.jpg操作,怎么确定??
是类似 if ( ssss)
then delete sss.jpg
或者 ssss ()
{
ssss =! ssss;
}
什么的????
??????恩,