SetWindowPos() приватный Метод

private SetWindowPos ( IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, SetWindowPosFlags uFlags ) : bool
hWnd IntPtr
hWndInsertAfter IntPtr
X int
Y int
cx int
cy int
uFlags SetWindowPosFlags
Результат bool
Пример #1
0
        /// <summary>
        /// Sets the dimensions of the render context provider.
        /// </summary>
        /// <param name="width">Width.</param>
        /// <param name="height">Height.</param>
        public override void SetDimensions(int width, int height)
        {
            //  Call the base.
            base.SetDimensions(width, height);

            //	Set the window size.
            Win32.SetWindowPos(windowHandle, IntPtr.Zero, 0, 0, Width, Height,
                               SetWindowPosFlags.SWP_NOACTIVATE |
                               SetWindowPosFlags.SWP_NOCOPYBITS |
                               SetWindowPosFlags.SWP_NOMOVE |
                               SetWindowPosFlags.SWP_NOOWNERZORDER);
        }