=======================
=                     =
= MouseWheel DLL 2.7  =
=  by Soul_Eater      =
=                     =
=======================


This DLL's purpose is to notify the user when the mousewheel is rotated
in the specified window/dialog's hwnd. This notification is sent in the form of a signal,
in this case it being 'mousewheel'. The entire signal is returned in this format:

mousewheel hwnd up|down delta

Ex. mousewheel 6489412 up 34

You would need code like this in your remotes to retrive a signal:

on *:signal:mousewheel:{
  var %x $1-
echo -a $gettok(%x,1,32) 
;hwnd
echo -a $gettok(%x,2,32)
;up|down
echo -a $gettok(%x,3,32)
;delta
}

The delta is the increment of the the mousewheel moving.

Functions:

-Mw

Sets target WINDOW hwnd

Usage:

//dll mousewheel.dll Mw $window(@test).hwnd
//echo -a $dll(mousewheel.dll,Mw,$window($active).hwnd)


-MwDlg

Sets target DIALOG hwnd

Usage:

//dll mousewheel.dll MwDlg $dialog(test).hwnd
//echo -a $dll(mousewheel.dll,MwDlg,$dialog(test).hwnd)


-ScrollLines

Retrieves the number of scroll lines in a window.

Usage: 

//echo -a $dll(mousewheel.dll,ScrollLines,$window($active).hwnd)


-DllInfo

Provides info about the DLL

Usage:

//dll mousewheel.dll DllInfo .
//echo -a $dll(mousewheel.dll,DllInfo,.)



Demo script instructions:

/load -rs <subdir> mousewheel.mrc

/mwdlg - run mousewheel dialog demo (mdx.dll required for dialog functionality)
/mwwin - run mousewheel window demo


Questions? Comments? Quandaries? Ideas?

Souleata@xrs.net

SoulEata on AIM and Yahoo! Messengers

-Versions-


2.7
-Fixed bug of incorrect hwnd value being returned
-Added demo .mrc (mdx.dll required for dialog functionality)

2.5
-Added return value of the wheel delta


2.0
-Added dialog support
-Added more than one window support
-Fixed bugs