示例#1
0
        public override void WriteToStream(IndentStream stream)
        {
            stream.Write("FETCH NEXT");

            stream.Write(" FROM ");
            CursorName.WriteToStream(stream);

            stream.WriteLine();
            stream.Write("INTO ");
            VariableNameList.WriteToStreamWithComma(stream);
        }
 /// <summary>
 /// Loads the specified cursor resource from a set of pre-defined cursors (see <see cref="CursorName"/>).
 /// </summary>
 /// <param name="cursorName">An identifier for one of the pre-defined cursors.</param>
 /// <returns>
 /// If the function succeeds, the return value is the handle to the newly loaded cursor.
 /// If the function fails, the return value is <see cref="IntPtr.Zero"/>.
 /// To get extended error information, call <see cref="Marshal.GetLastWin32Error"/>.
 /// </returns>
 public static IntPtr LoadCursor(CursorName cursorName)
 => LoadCursor(IntPtr.Zero, (int)cursorName);
示例#3
0
 internal static IntPtr LoadCursor(CursorName lpCursorName)
 {
     return(LoadCursor(IntPtr.Zero, new IntPtr((int)lpCursorName)));
 }
示例#4
0
文件: API.cs 项目: jpbruyere/opentk
 public static HCURSOR LoadCursor(CursorName lpCursorName)
 {
     return LoadCursor(IntPtr.Zero, new IntPtr((int)lpCursorName));
 }
示例#5
0
	[DllImport("user32", CallingConvention = CallingConvention.Winapi)] //ANSI
	public static extern IntPtr LoadCursorA( IntPtr hInstance, CursorName lpCursorName);
示例#6
0
 [DllImport("user32")]         //ANSI
 public static extern int LoadCursorA(int hInstance, CursorName lpCursorName);
示例#7
0
 public static IntPtr LoadCursor(CursorName lpCursorName)
 {
     return Functions.LoadCursor(IntPtr.Zero, new IntPtr((int) lpCursorName));
 }
示例#8
0
 public static IntPtr LoadCursor(CursorName lpCursorName)
 {
     return(Functions.LoadCursor(IntPtr.Zero, new IntPtr((int)lpCursorName)));
 }
示例#9
0
 public static IntPtr LoadCursor(CursorName cursor)
 {
     return LoadCursor(IntPtr.Zero, new IntPtr((int)cursor));
 }
示例#10
0
 /// <summary>
 /// Retrieves information about the specified pre-defined cursor.
 /// </summary>
 /// <param name="cursorName">One of the pre-defined cursors.</param>
 /// <param name="iconInfo">
 /// A pointer to an <see cref="IconInfo"/> structure. The function fills in the structure's members.
 /// </param>
 /// <returns>
 /// If the function succeeds, the return value is true and the function
 /// fills in the members of the specified <see cref="IconInfo"/> structure.<para/>
 /// If the function fails, the return value is false.
 /// To get extended error information, call <see cref="Marshal.GetLastWin32Error"/>.
 /// </returns>
 public static bool GetIconInfo(CursorName cursorName, out IconInfo iconInfo)
 {
     return(GetIconInfo(new IntPtr((int)cursorName), out iconInfo));
 }
示例#11
0
 /// <summary>
 /// Loads the specified icon resource from the executable (.exe)
 /// file associated with an application instance.
 /// </summary>
 /// <param name="cursorName">One of the pre-defined cursors to be loaded.</param>
 /// <returns>
 /// If the function succeeds, the return value is a handle to the newly loaded icon.<para/>
 /// If the function fails, the return value is <see cref="IntPtr.Zero"/>.
 /// To get extended error information, call <see cref="Marshal.GetLastWin32Error"/>.
 /// </returns>
 public static IntPtr LoadIcon(CursorName cursorName)
 {
     return(LoadIcon(IntPtr.Zero, new IntPtr((int)cursorName)));
 }