Hi,

A quick reply below to get you moving...


> I have a Win32-GUI app with a scrollable window area, and it uses the
> "-onScroll => \&scrollfn" model to handle manipulation of the scrollbar
> (and other normal messages). It's working well, such as it is.
>
> Now I'd like to add handling for the WM_MOUSEWHEEL message so I can scroll
> on mouse wheel events. However, I don't see any "-onMouseWheel" or
> similar event parameter in the supported events.

>From memory this isn't supported.

> So it occurs to me, then, that I'd like to specify a handler specifically
> for that message ID. Not just for this message, but also in case I'd like
> to handle WM_USER1 or something random in the future.
>
> But it's not clear to me how to specify what given function should be
> called when receiving an arbitrary specific windows message ID, nor what
> the formal parameters of that function should be when it is called.
>
> Does anyone know how to process arbitrary window messages? Any help
> appreciated.

If you search for the Hook method in the documentation it allows you to attach 
handlers for other messages.

Sorry that I couldn't provide more detail (I don't have win32::GUI on this 
environment).

Cheers,

jez.
_________________________________________________________________
Welcome to the next generation of Windows Live
http://www.windowslive.co.uk/get-live
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/

Reply via email to