SDK处理通用控件通知消息的基本方法:

Post date: 2012/4/6 上午 01:17:54

case WM_NOTIFY: NMITEMACTIVATE *pListViewState=(NMITEMACTIVATE *)lParam; if(pListViewState->hdr.code==NM_CLICK)//单击 //NM_DBLCLK:双击 { pListViewState->iItem;//选择的行 pListViewState->iSubItem;//选择的列 }