00 WM_NOTIFY 取得listview選項ID,在用getitemtext取得名稱

Post date: 2012/4/6 上午 02:09:25

case WM_NOTIFY: { NMITEMACTIVATE *pListViewState=(NMITEMACTIVATE *)lParam; if(pListViewState->hdr.code==NM_CLICK)//NM_DBLCLK { TCHAR lpString[128]; ListView_GetItemText(hwnd,pListViewState->iItem,0,lpString,128); SetWindowText(hwndText,lpString); } } break;