Sobald das Fenster den Flag #PB_Window_BorderLess bekommt geht dies nicht mehr
Was tun?
So sieht meine ClipCursor() Funktion aus:
Code: Alles auswählen
Procedure.i engineClipCursor(*engine.ENGINE_STRUCT)
With *engine
If \window\cursor_clip
If GetClientRect_(\window\hwnd,@\window\size)
\window\left\x = \window\size\left
\window\left\y = \window\size\top
\window\right\x = \window\size\right
\window\right\y = \window\size\bottom
MapWindowPoints_(\window\hwnd,#Null,@\window\left,1)
MapWindowPoints_(\window\hwnd,#Null,@\window\right,1)
\window\bounds\left = \window\left\x
\window\bounds\top = \window\left\y
\window\bounds\right = \window\right\x
\window\bounds\bottom = \window\right\y
ProcedureReturn ClipCursor_(\window\bounds)
EndIf
ProcedureReturn #Null
Else
ProcedureReturn ClipCursor_(#Null)
EndIf
EndWith
EndProcedure