Crazy D @ Work
May 19th, 1999, 10:32 AM
Hi
I'm trying to use the SetCapture API on a listview, placed on a form, which will be shown instead of a dropdown box.
If I've called the SetCapture, with the hwnd of the listview, that works fine, I get the msg I want (so I can let it dissapear when the user clicks outside the window, just like the dropdown box). But, for some reason, if I click on the listview, I have to click twice. First to get rid of the capture, and 2nd to select an item.
I've used the SetCapture before when I created a flatbutton, and that works fine (and I don't have to click twice for a click event).
Has anyone an idea why it works that way with the listview? Since this is pretty annoying, I use a workaround (in the mousemove, if the mouse is (Left + 150, etc) I set the capture, but since you can cheat windooz by moving the mouse fast, this isn't cool.
I'm out of ideas.. anyone?
Thanx :-)
Crazy D :-)
I'm trying to use the SetCapture API on a listview, placed on a form, which will be shown instead of a dropdown box.
If I've called the SetCapture, with the hwnd of the listview, that works fine, I get the msg I want (so I can let it dissapear when the user clicks outside the window, just like the dropdown box). But, for some reason, if I click on the listview, I have to click twice. First to get rid of the capture, and 2nd to select an item.
I've used the SetCapture before when I created a flatbutton, and that works fine (and I don't have to click twice for a click event).
Has anyone an idea why it works that way with the listview? Since this is pretty annoying, I use a workaround (in the mousemove, if the mouse is (Left + 150, etc) I set the capture, but since you can cheat windooz by moving the mouse fast, this isn't cool.
I'm out of ideas.. anyone?
Thanx :-)
Crazy D :-)