HotSouce
March 16th, 2004, 08:57 AM
Hello
I'm trying to create an ownerdraw popup listbox and to handle the WM_DRAWITEM message in its WndProc function. But unfortunately I noticed that this message is not sent. The listbox control should be in a toolbar(not in dlg), so there is no DlgProc where this message can be handled.
Does anybody have idea how to create such a control and to handle WM_DRAWITEM in its WndProc function?
All the syles which are necessary to make the listbox ownerdrawn(WS_POPUP,LBS_OWNERDRAWFIXED) are set.
I hope somebody help me to solve this problem.
Thanks in advance.
HotSouce
I'm trying to create an ownerdraw popup listbox and to handle the WM_DRAWITEM message in its WndProc function. But unfortunately I noticed that this message is not sent. The listbox control should be in a toolbar(not in dlg), so there is no DlgProc where this message can be handled.
Does anybody have idea how to create such a control and to handle WM_DRAWITEM in its WndProc function?
All the syles which are necessary to make the listbox ownerdrawn(WS_POPUP,LBS_OWNERDRAWFIXED) are set.
I hope somebody help me to solve this problem.
Thanks in advance.
HotSouce