The WM_LBUTTONDBLCLK message is posted when the user double-clicks the left mouse button while the cursor is in the client area of a window. But which message is posted when the user double-clicks in a listbox? :confused:
Posted on 2002-07-31 12:18:00 by Marwin
Posted on 2002-07-31 12:28:30 by comrade
Posted on 2002-07-31 12:29:46 by bazik
Argh, comrade! :)
I just guessed about NM_DBLCLK, because I have no Documentation here ;)
Posted on 2002-07-31 12:30:38 by bazik
LBN_DBLCLK is sent (written in the
Posted on 2002-07-31 12:31:25 by hartyl
And the element number is in lparam?
Posted on 2002-07-31 12:34:07 by Marwin
Hmm, my bad Marwin. Its WM_COMMAND and LBN_DBLCLK for a Listbox. For a Listview control, its WM_NOTIFY and NM_DBLCLK.
Posted on 2002-07-31 20:19:40 by comrade
Posted on 2002-08-01 00:59:47 by bazik
Yeah, listbox needs to have LBS_NOTIFY style too. :grin:
Posted on 2002-08-01 10:56:59 by comrade
Ok, thanks. It works perfectly now! What would I do without you? ;)
Posted on 2002-08-07 15:11:48 by Marwin