mIRCSize.dll v1.5  by mr.man (c) 2007
-------------------------------------

Introduction: This dll started out as a simple resize/reposition for the main mIRC window.
              It has since progressed as suggestions have been made to perform some other
              functions.

(1) Resize/Reposition a window.

    Usage: dll mIRCSize.dll set_size x y w h [flag] hwnd

    flag can be 0 ... acts on both Position and Size
                1 ... acts on Move only, ignores size parameters
                2 ... acts on Size only, ignores move parameters

    hwnd is the handle to the window you wish to manipulate

    Example: //dll mIRCSize.dll set_size 100 100 800 600 0 $window(-2).hwnd  


(2) Turn mIRC window resize off.

    Usage: dll mIRCSize.dll resize_off .

(3) Turn mIRC window resize on.

    Usage: dll mIRCSize.dll resize_on .

(4) Set window to constrain.

    Usage: dll mIRCSize.dll constrain_win hwnd

    hwnd is the handle to the window you wish to constrain

    Example: //dll mIRCSize.dll constrain_win $window(-2).hwnd  
    
(5) Set a windows size constraints (min/max sizes).

    Usage: dll mIRCSize.dll set_constraints 400 200 800 600 hwnd

    hwnd is the handle to the window you wish to set constraints on.

    Example: //dll mIRCSize.dll set_constraints 200 200 800 600 $window(-2).hwnd  

(6) Free window from constraints.

    Usage: dll mIRCSize.dll release_win hwnd

    hwnd is the handle to the window you wish to release

    Example: //dll mIRCSize.dll release_win $window(-2).hwnd  

(7) DLL information.

    Usage: //echo -a $dll(mIRCSize.dll,info,_)

(8) When a constrained window is resized, a signal event is fired.

    Example: on *:signal:mIRCSize:{ echo -a $1- }


Notes: You must call "constrain_win" and then "set_constraints" to set
       minimum/maximum sizes for given windows.



If anyone has any more suggestions for this dll please let me know.

Regards,
mr.man
-
mr.man@nextgenirc.net
