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

coredll

.
Summary
.

private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);

.

Private Shared Function SetWindowLong(ByVal hWnd As IntPtr, ByVal nIndex As Integer, ByVal dwNewLong As Integer) As Integer

.

        SetWindowLong(hWnd, GWL_STYLE, (style | BS_CENTER | BS_VCENTER | BS_MULTILINE));

.

    Private Function SetWindowLong(ByVal hWnd As IntPtr, ByVal nIndex As Integer, ByVal dwNewLong As Integer) As Integer

.

    SetWindowLong(hWnd, GWL_STYLE, (style Or BS_VCENTER Or BS_MULTILINE))

.
Documentation
[SetWindowLong] on MSDN
.

        /// <summary>Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to

user32

.

///      static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);

.

///      SetWindowLong(this.Handle, 0, 1);

.

static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);

.

        SetWindowLong(this.Handle, 0, 1);

.

        SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) ^ WS_EX_LAYERED);

.

  SetWindowLong (ll_handle, GWL_EXSTYLE, ll_Ret)

.
Summary
The SetWindowLongPtr API. Use this one instead of SetWindowLong to assure 64 bit compatibility.
.

public static IntPtr SetWindowLongPtr(HandleRef hWnd, int nIndex, IntPtr dwNewLong)

.

      return SetWindowLongPtr64(hWnd, nIndex, dwNewLong);

.

      return new IntPtr(SetWindowLong32(hWnd, nIndex, dwNewLong.ToInt32()));

.

[DllImport("user32.dll", EntryPoint="SetWindowLong")]

.

private static extern int SetWindowLong32(HandleRef hWnd, int nIndex, int dwNewLong);

.

[DllImport("user32.dll", EntryPoint="SetWindowLongPtr")]

.

private static extern IntPtr SetWindowLongPtr64(HandleRef hWnd, int nIndex, IntPtr dwNewLong);

.

  <System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint:="SetWindowLong")> _

.

  Private Shared Function SetWindowLong32(ByVal hWnd As IntPtr, <MarshalAs(UnmanagedType.I4)>nIndex As WindowLongFlags, ByVal dwNewLong As Integer) As Integer

.

  <System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint:="SetWindowLongPtr")> _

.

  Private Shared Function SetWindowLongPtr64(ByVal hWnd As IntPtr, <MarshalAs(UnmanagedType.I4)>nIndex As WindowLongFlags, ByVal dwNewLong As IntPtr) As IntPtr

.

  Public Shared Function SetWindowLongPtr(ByVal hWnd As IntPtr, nIndex As WindowLongFlags, ByVal dwNewLong As IntPtr) As IntPtr

.

      Return SetWindowLongPtr64(hWnd, nIndex, dwNewLong)

.

      Return New IntPtr(SetWindowLong32(hWnd, nIndex, dwNewLong.ToInt32))

.

Public Declare Function SetWindowLongPtr Lib "user32" Alias "SetWindowLongPtrA" _

.
Documentation
[SetWindowLongPtr] on MSDN
.

Additional information: Unable to find an entry point named 'SetWindowLongPtrA' in DLL 'user32'

.
Summary
The SetWindowLongPtr API. Use this one instead of SetWindowLong to assure 64 bit compatibility.
.

// SetWindowLongPtr

.

public static IntPtr SetWindowLongPtr(HandleRef hWnd, int nIndex, IntPtr dwNewLong)

.

      return SetWindowLongPtr64(hWnd, nIndex, dwNewLong);

.

      return new IntPtr(SetWindowLong32(hWnd, nIndex, dwNewLong.ToInt32()));

.

[DllImport("user32.dll", EntryPoint="SetWindowLong")]

.

private static extern int SetWindowLong32(HandleRef hWnd, int nIndex, int dwNewLong);

.

[DllImport("user32.dll", EntryPoint="SetWindowLongPtr")]

.

private static extern IntPtr SetWindowLongPtr64(HandleRef hWnd, int nIndex, IntPtr dwNewLong);

.

  <System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint:="SetWindowLong")> _

.

  Private Shared Function SetWindowLong32(ByVal hWnd As IntPtr, <MarshalAs(UnmanagedType.I4)>nIndex As WindowLongFlags, ByVal dwNewLong As Integer) As Integer

.

  <System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint:="SetWindowLongPtr")> _

.

  Private Shared Function SetWindowLongPtr64(ByVal hWnd As IntPtr, <MarshalAs(UnmanagedType.I4)>nIndex As WindowLongFlags, ByVal dwNewLong As IntPtr) As IntPtr

.

  Public Shared Function SetWindowLongPtr(ByVal hWnd As IntPtr, nIndex As WindowLongFlags, ByVal dwNewLong As IntPtr) As IntPtr

.

      Return SetWindowLongPtr64(hWnd, nIndex, dwNewLong)

.

      Return New IntPtr(SetWindowLong32(hWnd, nIndex, dwNewLong.ToInt32))

.

Public Declare Function SetWindowLongPtr Lib "user32" Alias "SetWindowLongPtrA" _

.
Documentation
[SetWindowLongPtr] on MSDN
.

Additional information: Unable to find an entry point named 'SetWindowLongPtrA' in DLL 'user32'

.

    ///         Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message

.

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

.

        ///     Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed.

Constants

8: WM
.
WM_STYLECHANGED 0x7D The WM_STYLECHANGED message is sent to a window after the SetWindowLong function has changed one or more of the window's styles.
.
WM_STYLECHANGING 0x7C The WM_STYLECHANGING message is sent to a window when the SetWindowLong function is about to change one or more of the window's styles.

Enums

.

    /// <summary>Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to

.

    ''' <summary>Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to

.
Summary
.

    /// The WM_STYLECHANGING message is sent to a window when the SetWindowLong function is about to change one or more of the window's styles.

.

    /// The WM_STYLECHANGED message is sent to a window after the SetWindowLong function has changed one or more of the window's styles

.

    '''The WM_STYLECHANGED message is sent to a window after the SetWindowLong function has changed one or more of the window's styles.

.

    '''The WM_STYLECHANGING message is sent to a window when the SetWindowLong function is about to change one or more of the window's styles.

.

    ''' The message is sent to a window after the <c>SetWindowLong</c> function has changed one or more of the window's styles.

.

    ''' The message is sent to a window when the <c>SetWindowLong</c> function is about to change one or more of the


 
Access PInvoke.net directly from VS: