请问怎么给list_control发送鼠标click指定行的消息

请教如何给list_control发送鼠标click指定行的消息
请教如何给list_control发送鼠标click指定行的消息

注意,不是去响应NM_CLICK消息,而是发消息跟鼠标点击某一行的效果完全一样,这个消息该怎么写

------解决方案--------------------
在消息中取得list_control中的选定行就可以啦
------解决方案--------------------
试试:

NMHDR nmh;
nmh.code = NM_CLICK;  // Message type defined by control.
nmh.idFrom = pListCtrl->GetDlgCtrlID();
nmh.hwndFrom = pListCtrl->m_hWnd;
pListCtrl->GetParent()->SendMessage(WM_NOTIFY, NM_CLICK, reinterpret_cast<WPARAM>(&nmh));