Hello ;) I'm having trouble recieving my LBN_DLBCLK message. You recieve it via WM_COMMAND right? Here's my code:
Thanx For Your Input,
... .ELSEIF uMsg==WM_COMMAND mov EAX, wParam .IF lParam==0 invoke SendMessage, hWnd, WM_CLOSE, wParam, lParam .ELSEIF lParam==ID_LBox1 shr EAX, 16 .IF AX==LBN_DBLCLK ; Do whatever ...
No, as far as i know, you have to add 'CS_DBLCLKS' style flag when you create the window (in the winclass structure) mov wc.style, .... or CS_DBLCLKS Then to handle messages the double click message comes in separately..
Hope this helps. NaN
.elseif uMsg == WM_LBUTTONDBLCLK ; get the xy click point LOWORD lParam mov PT.x, eax HIWORD lParam mov PT.y, eax ; do something with it... invoke DoDoubleClick, PT
.....i'm using a dialog box and I specified LBS_STANDARD, which notifies the parent. If I choose to recieve WM_LBUTTONDBLCLK, then I'd get notified *every* time the user double clicks. My main concern is how to recieve the LBN_DBLCLK via WM_COMMAND. Thanx though NaN :D Still Stuck,
Only a list box that has the LBS_NOTIFY style will send this notification message
;) Got it finally........
LBS_STANDARD: Sorts strings in the list box alphabetically. The parent window receives an input message whenever the user clicks or double-clicks a string. The list box has borders on all sides......I had this in my resource file; expecting to recieve the input. So then I re-specified the notice, and it worked. But according to the above, shouldn't it already be doing that? This message was edited by *unknown*, on 5/30/2001 8:30:44 AM
Ah, but it doesn't say it will produce LBN_DBLCLK on the second click. Without the other style, you are probably getting two single click messages, instead of a single click followed by a double click message.