2007年12月6日星期四

几种控件的绑定

m_pListCt->pList = (CListCtrl*) GetDlgItem(IDC_LIST_DB);

if(!m_pListCt->pList->m_hWnd) //check if the ColorListstyle was already assigned
m_pListCt->pList->SubclassDlgItem(IDC_LIST_DB,this);

//hide the button:
GetDlgItem(IDC_BUTTON_ROLLBACK)->EnableWindow(false);

没有评论: