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:
WM_NOTIFY, LBN_DBLCLK
Use WM_NOTIFY and NM_DBLCLK :)
http://www.asmcommunity.net/board/index.php?topic=6591&highlight=assume
http://www.asmcommunity.net/board/index.php?topic=6591&highlight=assume
Argh, comrade! :)
I just guessed about NM_DBLCLK, because I have no Documentation here ;)
I just guessed about NM_DBLCLK, because I have no Documentation here ;)
LBN_DBLCLK is sent (written in the windows.inc)
And the element number is in lparam?
Hmm, my bad Marwin. Its WM_COMMAND and LBN_DBLCLK for a Listbox. For a Listview control, its WM_NOTIFY and NM_DBLCLK.
Yeah, listbox needs to have LBS_NOTIFY style too. :grin:
Ok, thanks. It works perfectly now! What would I do without you? ;)