Hi,
I'm implementing a custom combobox to behave like a searchbox. It is constructed from an Edit control, a Button and a Listbox.
I'm trying to open the listbox on mouse click on the button, it seemed to be simple but become complicated. First I tried to manage the mouse click on the "BN_CLICKED", but then I discovered it's too late and I'd like to open the listbox already on "WM_LBUTTONDOWN" (and on "WM_LBUTTONDBLCLK"), the problem is, when I'm trying to open the list box on this message the listbox receives "WM_KILLFOCUS" and being closed right after being opened for a moment, and later the button receives the "WM_SETFOCUS" message, I was thinking to open the list box in the "WM_SETFOCUS" which receives the button, but I can't rely on this message because it won't be sent each button click (for example when I keep clicking the button).
Thanks ahead!
mike.