Mouse Focus

Stefan sickboy at 9elements.com
Fri Apr 4 08:45:57 PDT 2008


u can use the win32 method SetCursorPos to set the mouse position.

Vadim Zeitlin schrieb:
> On Fri, 4 Apr 2008 16:25:44 +0100 Declan McMullen <declan.mcmullen at gmail.com> wrote:
>
> DM> I'm looking to replicate vmware style behaviour when it comes to mouse
> DM> capturing. I want my widgets program to capture the mouse and lock it inside
> DM> the panel.
>
>  There is no equivalent of Win32 TrackMouseEvent() in wx so you're going to
> have trouble doing this efficiently.
>
> DM> I tried using the CaptureMouse() method but instead of moving the mouse into
> DM> my window it brought up a windows wait mouse pointer, the egg timer.
>
>  CaptureMouse() doesn't move mouse at all (WarpPointer() does this) but
> neither does it change the cursor.
>
>  Regards,
> VZ
>
>   



More information about the wx-users mailing list