Right button clicks

Fabian Cenedese Cenedese at indel.ch
Mon Aug 19 04:02:26 CDT 2002


> > Does Wine support right mouse button double clicks? I have an App with
> > a dialog (in fact an overridden MFC CDialog for about infos) in which I can
> > double click with the right mouse button to show some additional info. But
> > they never show up. After +relay tracing the messages I found that only
> > WM_RBUTTONDOWN and WM_RBUTTONUP messages are generated,
> > none of them get converted into clicks or even double clicks, no matter
> > how fast I click. Does anyone have an idea?
>
>Hmm, strange.
>Right button double clicks should work, since Wine does
>./windows/message.c:               msg->message += (WM_LBUTTONDBLCLK - 
>WM_LBUTTONDOWN);
>a relative statement to support *all* kinds of mouse buttons with double
>clicks.
>However, since a right button double click is rather "rare", I'd be tempted to
>think that I'm missing some parts of the picture and Wine does indeed have
>a bug here for right buttons.
>Try using something like --debugmsg 
>+relay,+msg,+message,+cursor,+x11drv,+event
>to find out why a double click doesn't get generated (I assume a double
>WM_RBUTTONDOWN/UP gets generated instead of a WM_RBUTTONDBLCLK).
>Interesting files would be e.g. windows/message.c, dlls/x11drv/mouse.c,
>dlls/x11drv/event.c and maybe also windows/input.c
>Add some TRACEs there if needed, to find out why it doesn't want to do
>what you want it to do :-)

I had a look at the new messages. I couldn't get a hint from the called
functions or trace outputs. To compare I also made a left button dblclick
but I couldn't see that either. Guess I have to dig into the sources. Thanks
for pointing me to directions.

bye  Fabi





More information about the wine-devel mailing list