I would like to create a popup list window that has icons, text and the list items are of a certain height 26 pixels. I would like the popup list to appear flat similar to a standard combo popup list.
I have tried using CreateWindowEx with LBS_USEICON and cannot seem to get this to work without drawing the item myself.
nItem = SendMessage(m_hWndPopUp, LB_ADDSTRING, 0, "Some Text")
SendMessage m_hWndPopUp, LB_SETITEMDATA, nItem, SomePicture.Handle
to set the itemdata.
I have also found that I cannot trap the WM_MEASUREITEM and WM_DRAWITEM of the popup list unless I create a popup window and place it on that.
Can anyone supply me with CreateWindowEx code to create the window and verify I am ading the data correcctly and possibly explain why I am having problems with the MEASUREITEM and DRAWITEM events.
Or alternatively point me to a site with a good VB Example of LBS_USEICON
Thanks in advance for any help given