From 616a96343c9f3f9210ed1bb0d93e212849178b0c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 22 Apr 2009 11:20:19 +0000 Subject: [PATCH] From Neil Hughes, "Please find attached two files that I've amended to add the IDC_HAND cursor for the windows platform." --- include/osgViewer/GraphicsWindow | 1 + src/osgViewer/GraphicsWindowWin32.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/include/osgViewer/GraphicsWindow b/include/osgViewer/GraphicsWindow index a15349f03..6b3384f6e 100644 --- a/include/osgViewer/GraphicsWindow +++ b/include/osgViewer/GraphicsWindow @@ -106,6 +106,7 @@ class OSGVIEWER_EXPORT GraphicsWindow : public osg::GraphicsContext, public osgG WaitCursor, TextCursor, CrosshairCursor, + HandCursor, UpDownCursor, LeftRightCursor, TopSideCursor, diff --git a/src/osgViewer/GraphicsWindowWin32.cpp b/src/osgViewer/GraphicsWindowWin32.cpp index bb5b2e926..e75fb473c 100644 --- a/src/osgViewer/GraphicsWindowWin32.cpp +++ b/src/osgViewer/GraphicsWindowWin32.cpp @@ -2033,6 +2033,9 @@ HCURSOR GraphicsWindowWin32::getOrCreateCursor(MouseCursor mouseCursor) case BottomLeftCorner: _mouseCursorMap[mouseCursor] = LoadCursor( NULL, IDC_SIZENESW ); break; + case HandCursor: + _mouseCursorMap[mouseCursor] = LoadCursor( NULL, IDC_HAND ); + break; default: break; }