Added LoadCursor method.

Added CursorName enum (only default arrow cursor is defined for now).
This commit is contained in:
the_fiddler 2009-10-21 20:07:32 +00:00
parent 8fbea23db2
commit 7b8ba2eacb

View file

@ -828,6 +828,21 @@ namespace OpenTK.Platform.Windows
#endregion #endregion
#region LoadCursor
[DllImport("user32.dll")]
public static extern HCURSOR LoadCursor(HINSTANCE hInstance, LPCTSTR lpCursorName);
[DllImport("user32.dll")]
public static extern HCURSOR LoadCursor(HINSTANCE hInstance, IntPtr lpCursorName);
public static HCURSOR LoadCursor(CursorName lpCursorName)
{
return LoadCursor(IntPtr.Zero, new IntPtr((int)lpCursorName));
}
#endregion
#endregion #endregion
#region Display settings #region Display settings
@ -4039,6 +4054,15 @@ namespace OpenTK.Platform.Windows
#endregion #endregion
#region CursorName
enum CursorName : int
{
Arrow = 32512
}
#endregion
#endregion #endregion
#region --- Callbacks --- #region --- Callbacks ---