Exemplo n.º 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);
        }
Exemplo n.º 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);
        }