From: PC on
i have searched the web for WM_CLICK
and i have found a lot
however nowhere did i find what the constant for WM_CLICK is
or how the wParam and lParam parameters are used/interpreted
anyone
TIA


From: Tom Esh on
On Fri, 2 Sep 2005 00:01:33 +0200, "PC" <Onzin(a)pandora.be> wrote:

>i have searched the web for WM_CLICK
>and i have found a lot
>however nowhere did i find what the constant for WM_CLICK is
>or how the wParam and lParam parameters are used/interpreted
>anyone

I suspect the confusion is because there is no WM_CLICK, but rather
button-specific up/down messages:

Public Const WM_LBUTTONDOWN = &H201
Public Const WM_LBUTTONUP = &H202
Public Const WM_LBUTTONDBLCLK = &H203
Public Const WM_RBUTTONDOWN = &H204
Public Const WM_RBUTTONUP = &H205
Public Const WM_RBUTTONDBLCLK = &H206
Public Const WM_MBUTTONDOWN = &H207
Public Const WM_MBUTTONUP = &H208
Public Const WM_MBUTTONDBLCLK = &H209

There are also various control-specific notification messages (sent to
a control's parent) such as.
Public Const BN_CLICKED = 0

Documentation for all these and more can be found in MSDN on-line.
Here's the page for WM_LBUTTONDOWN including all the info on the
parameters:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/mouseinput/mouseinputreference/mouseinputmessages/wm_lbuttondown.asp


-Tom
MVP - Visual Basic
(please post replies to the newsgroup)
From: PC on

"Tom Esh" <tjeshGibberish(a)suscom.net> wrote in message
news:ki5fh1140aabng6e370rtpq2vdrkdvtajt(a)4ax.com...
> On Fri, 2 Sep 2005 00:01:33 +0200, "PC" <Onzin(a)pandora.be> wrote:
>
> >i have searched the web for WM_CLICK
> >and i have found a lot
> >however nowhere did i find what the constant for WM_CLICK is
> >or how the wParam and lParam parameters are used/interpreted
> >anyone
>
> I suspect the confusion is because there is no WM_CLICK, but rather
> button-specific up/down messages:
>
> Public Const WM_LBUTTONDOWN = &H201
> Public Const WM_LBUTTONUP = &H202
> Public Const WM_LBUTTONDBLCLK = &H203
> Public Const WM_RBUTTONDOWN = &H204
> Public Const WM_RBUTTONUP = &H205
> Public Const WM_RBUTTONDBLCLK = &H206
> Public Const WM_MBUTTONDOWN = &H207
> Public Const WM_MBUTTONUP = &H208
> Public Const WM_MBUTTONDBLCLK = &H209
>
> There are also various control-specific notification messages (sent to
> a control's parent) such as.
> Public Const BN_CLICKED = 0
>
> Documentation for all these and more can be found in MSDN on-line.
> Here's the page for WM_LBUTTONDOWN including all the info on the
> parameters:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui
/windowsuserinterface/userinput/mouseinput/mouseinputreference/mouseinputmes
sages/wm_lbuttondown.asp
>
>
> -Tom
> MVP - Visual Basic
> (please post replies to the newsgroup)
thanks
i found out what was confusing me
if you do a search on wm_click in google you find lots of pages
then i found this chinese site where amongst all the chinese signs there was
WM_CLICK=&HF5
so what some people call wm_click is just BM_CLICK


 | 
Pages: 1
Prev: Mshflexgrid to Excel -
Next: MMControl