Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SetWindowPos" in [All]

coredll

.

SetWindowPos declaration is also required.

.

private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uint uFlags);

.

Private Shared Function SetWindowPos(ByVal hWnd As IntPtr, _

.

            SetWindowPos(handle, 0, 0, 0, 0, 0, SWP_HIDEWINDOW);

.

            SetWindowPos(handle, 0, 0, 0, 240, 26, SWP_SHOWWINDOW);

.

    SetWindowPos(hWnd,

.

static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X,

.

private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uint uFlags);

.

Private Shared Function SetWindowPos(ByVal hWnd As IntPtr, _

.

            SetWindowPos(handle, 0, 0, 0, 0, 0, SWP_HIDEWINDOW);

.

            SetWindowPos(handle, 0, 0, 0, 240, 26, SWP_SHOWWINDOW);

.

    private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, SetWindowPosFlags uFlags);

.

    private enum SetWindowPosFlags : uint

.

        SetWindowPos(hwnd, (IntPtr)HWND_BOTTOM, 0, 0, 0, 0,

.

            SetWindowPosFlags.SynchronousWindowPosition |

.

            SetWindowPosFlags.IgnoreMove |

.

            SetWindowPosFlags.IgnoreResize);

.
Documentation
[SetWindowPos] on MSDN

Enums

.
Summary
.

private enum SetWindowPosFlags : uint

.

Private Enum SetWindowPosFlags As UInteger

.

    /// The WM_WINDOWPOSCHANGING message is sent to a window whose size, position, or place in the Z order is about to change as a result of a call to the SetWindowPos function or another window-management function.

.

    /// The WM_WINDOWPOSCHANGED message is sent to a window whose size, position, or place in the Z order has changed as a result of a call to the SetWindowPos function or another window-management function.

.

    '''The WM_WINDOWPOSCHANGED message is sent to a window whose size position or place in the Z order has changed as a result of a call to the SetWindowPos function or another window-management function.

.

    '''The WM_WINDOWPOSCHANGING message is sent to a window whose size position or place in the Z order is about to change as a result of a call to the SetWindowPos function or another window-management function.

.

    ''' result of a call to the <see cref="NativeMethods.SetWindowPos"/> function or another window-management function.

.

    ''' result of a call to the <c>SetWindowPos</c> function or another window-management function.

.

    /// To add or remove this style, use the SetWindowPos function.

.

    ''' To add or remove this style, use the SetWindowPos function.

.

    /// To add or remove this style, use the SetWindowPos function.

.

    ''' To add or remove this style, use the SetWindowPos function.

user32

.
Summary
.

    ///     If you have changed certain window data using SetWindowLong, you must call SetWindowPos for the changes to

.

    ///     To use SetWindowPos to bring a window to the top, the process that owns the window must have

.

static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, SetWindowPosFlags uFlags);

.

Private Shared Function SetWindowPos(ByVal hWnd As IntPtr, ByVal hWndInsertAfter As IntPtr, ByVal X As Integer, ByVal Y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal uFlags As SetWindowPosFlags) As Boolean

.

Public Declare Function SetWindowPos Lib "user32.dll" _

.

SetWindowPosFlags

.

/// SetWindowPos Flags

.
Documentation
[SetWindowPos] on MSDN
.

    public enum SetWindowPosFlags : uint

.

        SetWindowPos(windowHandler, (IntPtr)SpecialWindowHandles.HWND_TOP, Screen.AllScreens[monitor].WorkingArea.Left,

.

             SetWindowPosFlags.SWP_SHOWWINDOW);

Constants

9: WM
.
WM_WINDOWPOSCHANGED 0x47 The WM_WINDOWPOSCHANGED message is sent to a window whose size, position, or place in the Z order has changed as a result of a call to the SetWindowPos function or another window-management function.
.
WM_WINDOWPOSCHANGING 0x46 The WM_WINDOWPOSCHANGING message is sent to a window whose size, position, or place in the Z order is about to change as a result of a call to the SetWindowPos function or another window-management function.

 
Access PInvoke.net directly from VS: