Fr0zT Posted June 4, 2009 Posted June 4, 2009 I would like to know if anyone know's how to get a MouseUp event when using GUIRegisterMsg to force WM_NCHITTEST to return $HTCAPTION (for moving layered toobar window around.) This is a basic snapshot of my code... GUIRegisterMsg($WM_NCHITTEST, "WM_NCHITTEST") GUIRegisterMsg(0x0202, "_LED_MOUSEUP") ;This won't fire on $HTCAPTION, but works fine on everything else Func WM_NCHITTEST($hWnd, $iMsg, $iwParam, $ilParam) ; ==================================================================================================== ; Handle the WM_NCHITTEST for the layered window so it can be dragged by clicking anywhere on the image. ; ==================================================================================================== If $iMsg = $WM_NCHITTEST Then Local $LEDIndex = _WinAPI_GetWindowLong($hWnd,$GWL_USERDATA) ;This will tell us if it's one of the windows we manage with our structure If $LEDIndex < UBound($newLEDs) And $hWnd = DllStructGetData($newLEDs[$LEDIndex],"hWnds",1) Then Return $HTCAPTION EndIf EndIf EndFunc ;==>WM_NCHITTEST Func _LED_MOUSEUP($hWnd, $iMsg, $iwParam, $ilParam) .... endFunc Thanks in Advance for any help, Fr0zT [size="1"][font="Lucida Console"]My ScriptsTrue multi-threaded ping[/font][/size]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now