블로그는 나의 힘!
[ Programing ]/MFC2013. 5. 21. 22:49

간단한데 쓸려고 하면 없는 코드..

 

void class::OnLvnItemchanged(NMHDR *pNMHDR, LRESULT *pResult)

{

 LPNMLISTVIEW pNMLV = reinterprept_cast<LPNMLISTVIEW>(pNMHDR);

*pResult =  0;

 

if(pNMLV->uChanged & LVIS_STATE)

{

if( (pNMLV->uOldState & 0x1000) && (pNMLV->uOldState & 0x2000) )

{

// checked

}

else if( (pNMLV->uOldState & 0x2000) && (pNMLV->uOldState & 0x1000) )

{

// unchecked

}

}

}

 

 

Posted by Mister_Q