예제 #1
0
        /// <summary>
        /// Converts a win32 message parameter into a
        /// <see cref="SIZE"/> instance.
        /// </summary>
        public static SIZE FromParam(IntPtr param)
        {
            SIZE size = new SIZE();

            size.cx = WinDefApi.LOWORD(param);
            size.cy = WinDefApi.HIWORD(param);
            return(size);
        }
예제 #2
0
        /// <summary>
        /// Converts a win32 message parameter into a
        /// <see cref="SIZE"/> instance.
        /// </summary>
        public static POINT FromParam(IntPtr param)
        {
            POINT point = new POINT();

            point.X = WinDefApi.LOWORD(param);
            point.Y = WinDefApi.HIWORD(param);
            return(point);
        }