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);
internal static IntPtr LoadCursor(CursorName lpCursorName) { return(LoadCursor(IntPtr.Zero, new IntPtr((int)lpCursorName))); }
public static HCURSOR LoadCursor(CursorName lpCursorName) { return LoadCursor(IntPtr.Zero, new IntPtr((int)lpCursorName)); }
[DllImport("user32", CallingConvention = CallingConvention.Winapi)] //ANSI public static extern IntPtr LoadCursorA( IntPtr hInstance, CursorName lpCursorName);
[DllImport("user32")] //ANSI public static extern int LoadCursorA(int hInstance, CursorName lpCursorName);
public static IntPtr LoadCursor(CursorName lpCursorName) { return Functions.LoadCursor(IntPtr.Zero, new IntPtr((int) lpCursorName)); }
public static IntPtr LoadCursor(CursorName lpCursorName) { return(Functions.LoadCursor(IntPtr.Zero, new IntPtr((int)lpCursorName))); }
public static IntPtr LoadCursor(CursorName cursor) { return LoadCursor(IntPtr.Zero, new IntPtr((int)cursor)); }
/// <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)); }
/// <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))); }