Re: [osg-users] GraphicsWindowWin32: InheritCursor problems
Mikhail I. Izmestev wrote: > But when I try to use this solution with osg own > window it not works, because when WM_NCHITTEST message received, > _mouseCursor changes from InheritCursor and then WM_SETCURSOR message > handler work incorrect. What you think about using _appMouseCursor instead _mouseCursor into WM_SETCURSOR handler to solve this problem? Index: src/osgViewer/GraphicsWindowWin32.cpp === --- src/osgViewer/GraphicsWindowWin32.cpp(revision 10745) +++ src/osgViewer/GraphicsWindowWin32.cpp(working copy) @@ -2308,11 +2308,11 @@ /// case WM_SETCURSOR : /// //The cursor is only modified in response to the WM_SETCURSOR message if the mouse cursor isn't set to //InheritCursor. InheritCursor lets the user manage the cursor externally. -if (_mouseCursor != InheritCursor) +if (_appMouseCursor != InheritCursor) { if (_traits->useCursor) ::SetCursor( _currentCursor); else ::SetCursor(NULL); Mikhail. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] GraphicsWindowWin32: InheritCursor problems
I'm sorry > To do that I use InheritCursor, this solution works when I use embedded > window which > not receive WM_NCHITTEST message. Window receive this message, but it have not borders and cursor not changes instead not embedded window. Mikhail. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] GraphicsWindowWin32: InheritCursor problems
Hello. I need to use custom cursors. To do that I use InheritCursor, this solution works when I use embedded window which not receive WM_NCHITTEST message. But when I try to use this solution with osg own window it not works, because when WM_NCHITTEST message received, _mouseCursor changes from InheritCursor and then WM_SETCURSOR message handler work incorrect. Mikhail. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org