Ejemplo n.º 1
0
        /// <summary>
        /// 获得鼠标形状
        /// </summary>
        /// <returns></returns>
        public static int GetCursorStyle()
        {
            CursorInfo cursorInfo = new CursorInfo();

            cursorInfo.cbSize = Marshal.SizeOf(cursorInfo);
            User32Api.GetCursorInfo(ref cursorInfo);

            return(cursorInfo.hCursor.ToInt32());
        }