Hello.

I have discovered some problem using InheritCursor with
osgViewer::GraphicsWindowWin32 to make possible WM_SETCURSOR handling
in my application.

If _mouseCursor == InheritCursor then WM_SETCURSOR handler in
GraphicsWindowWin32::handleNativeWindowingEvent do nothing and
WM_SETCURSOR message sends to my application. I can set _mouseCursor
to InheritCursor by calling GraphicsWindowWin32::setCursor method, all
works fine, WM_SETCURSOR message received. But if I try to move mouse
around window border then _mouseCursor changes to another value and
never set back to InheritCursor. Problem into WM_NCHITTEST handler, it
never set _mouseCursor to InheritCursor.

Another problem with cursor into windows vista with composition
enabled. Windows vista not send WM_NCHITTEST message when mouse moved
into window caption and cursor stay as resizing. But we can use
WM_NCMOUSEMOVE message. Same problem discussed at
http://social.msdn.microsoft.com/Forums/en/windowsuidevelopment/thread/9a8a63c8-79b5-43a8-82eb-f659be947add

Mikhail.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to