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 "WINDOWPOS" in [All]

Enums

.
Summary
DeferWindowPosCommands - Enumeration for DeferWindowPos() API call for parameter uFlags
.

enum DeferWindowPosCommands :uint {

.

    ///<Summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</Summary>

.

Public Enum DeferWindowPosCommands As UInteger

.

    '''<Summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</Summary>

.

Public Enum DeferWindowPosCommands

.
Documentation
[DeferWindowPosCommands] on MSDN
.
Summary
.

private enum SetWindowPosFlags : uint

.

    /// <remarks>SWP_ASYNCWINDOWPOS</remarks>

.

    AsynchronousWindowPosition = 0x4000,

.

    /// <summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</summary>

.

Private Enum SetWindowPosFlags As UInteger

.

    ''' <remarks>SWP_ASYNCWINDOWPOS</remarks>

.

    SynchronousWindowPosition = &H4000

.

    ''' <summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</summary>

3: SWP
.

      ASYNCWINDOWPOS = 0x4000,

.

      /// <summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.

.

    /// 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.

.

    WINDOWPOSCHANGING = 0x0046,

.

    /// 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.

.

    WINDOWPOSCHANGED = 0x0047,

.

    '''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_WINDOWPOSCHANGED = &H47

.

    '''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.

.

    WM_WINDOWPOSCHANGING = &H46

.

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

.

    ''' A pointer to a <c>WINDOWPOS</c> structure that contains information about the window's new size and position.

.

    WmWindowPosChanging = &H46

.

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

.

    WmWindowPosChanged = &H47

.

    /// 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.

Structures

.

   WINDOWPOS lppos;

.

    Type: PWINDOWPOS

.

    A pointer to a WINDOWPOS structure that contains the size and position values specified in the operation that moved or resized the window.

.
Summary
The WINDOWPOS structure contains information about the size and position of a window.
.

    public struct WINDOWPOS

.

    Public Structure WINDOWPOS

user32

.
Summary
.

static extern IntPtr BeginDeferWindowPos(int nNumWindows);

.

Public Shared Function BeginDeferWindowPos(nNumWindows As Integer) As IntPtr

.

Public Declare Function BeginDeferWindowPos Lib "user32" _

.

The BeginDeferWindowPos function allocates memory for a multiple-window- position structure and returns the handle to the structure.

.

DeferWindowPos fills the multiple-window-position structure with information about the target position for one or more windows about to be moved. The EndDeferWindowPos function accepts the handle to this structure and repositions the windows by using the information stored in the structure.

.

If the system must increase the size of the multiple-window- position structure beyond the initial size specified by the nNumWindows parameter but cannot allocate enough memory to do so, the system fails the entire window positioning sequence (BeginDeferWindowPos

.
Documentation
[BeginDeferWindowPos] on MSDN
.
Summary
DeferWindowPosCommands - Enumeration for DeferWindowPos() API call for parameter uFlags
.

enum DeferWindowPosCommands :uint {

.

    ///<Summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</Summary>

.

Public Enum DeferWindowPosCommands As UInteger

.

    '''<Summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</Summary>

.

Public Enum DeferWindowPosCommands

.
Documentation
[DeferWindowPosCommands] on MSDN
.
Summary
.

static extern bool EndDeferWindowPos(IntPtr hWinPosInfo);

.

Public Function EndDeferWindowPos(hWinPosInfo As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

Public Declare Function EndDeferWindowPos Lib "user32" _

.
Documentation
[EndDeferWindowPos] on MSDN
.
Summary
GetWindowPos is an old Win32 method, you should use GetWindowRect or GetWindowPlacement
.

static extern TODO GetWindowPos(TODO);

.

Declare Function GetWindowPos Lib "user32.dll" (TODO) As TODO

.
Documentation
[GetWindowPos] on MSDN
.
Summary
.

    ///         <term>SWP_ASYNCWINDOWPOS (0x4000)</term>

.

    ///         <description>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</description>

.

    ///     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

.

   ASYNCWINDOWPOS = 0x4000;

.
Documentation
[SetWindowPos] on MSDN
.

    public enum SetWindowPosFlags : uint

.

        SWP_ASYNCWINDOWPOS = 0x4000,

.

        ///     Prevents the window from receiving the WM_WINDOWPOSCHANGING message.

.

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

.

             SetWindowPosFlags.SWP_SHOWWINDOW);

shell32

.

///         <term>ABM_WINDOWPOSCHANGED (0x00000009)</term>

.

    ABM_WINDOWPOSCHANGED = 9

coredll

.

    public const int SWP_ASYNCWINDOWPOS = 0x4000;

.

    Public Const SWP_ASYNCWINDOWPOS As Integer = &H4000

.

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, _

.

    public const int SWP_ASYNCWINDOWPOS = 0x4000;

.

    Public Const SWP_ASYNCWINDOWPOS As Integer = &H4000

.

            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

.

        /// <remarks>SWP_ASYNCWINDOWPOS</remarks>

.

        SynchronousWindowPosition = 0x4000,

.

        /// <summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</summary>

.

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

.

            SetWindowPosFlags.SynchronousWindowPosition |

.

            SetWindowPosFlags.IgnoreMove |

.

            SetWindowPosFlags.IgnoreResize);

.
Documentation
[SetWindowPos] on MSDN

Constants

.

    public const int ABM_WINDOWPOSCHANGED   = 0x0000009;

.

    public const int ABM_WINDOWPOSCHANGED   = 0x0000009;

21: SW
.

const UInt32 SWP_ASYNCWINDOWPOS  =0x4000;

.

    Const SWP_ASYNCWINDOWPOS As Integer = &H4000

22: SWP
.

const UInt32 SWP_ASYNCWINDOWPOS  =0x4000;

23: 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.
.

private const UInt32 WM_WINDOWPOSCHANGED       = 0x0047;

.

private const UInt32 WM_WINDOWPOSCHANGING      = 0x0046;

.

   WM_WINDOWPOSCHANGED = &H47

.

   WM_WINDOWPOSCHANGING = &H46

.

WM_WINDOWPOSCHANGING      equ 046h

.

WM_WINDOWPOSCHANGED       equ 047h


 
Access PInvoke.net directly from VS: