显示标签为“GetDlgItem”的博文。显示所有博文
显示标签为“GetDlgItem”的博文。显示所有博文

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);