How do i send a WM_CLICK message to a listctrl?
I am trying to do it as follows, but this doesn't work.
NMHDR hdr;
hdr.hwndFrom = this->m_hWnd;
hdr.code = NM_CLICK;
hdr.idFrom = ??;
m_List1.SendMessage(WM_NOTIFY, 0, (LPARAM)
I also tried like this
m_List1.SendMessage(NM_CLICK,0,0);
I want first Item get clicked of list ctrl automatically.
The functionality is such that List of second list control gets filled up by pressing
item of first list control.And requirement is such that ,first item of first Listcotrol gets clicked automatically.
Extra information:
There is one list control in which patient names are displayed,after clicking particular patient details of that patient are filled up in second list box.
now requirement is such that as soon as dialog is displayed (list control gets filled up) first patient gets clicked and details get filled.
Also there are different search criterias so the patient is not fixed.