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

dwmapi

.

static extern bool DwmDefWindowProc(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam, ref IntPtr plResult);

.

Private Shared Function DwmDefWindowProc(ByVal hWnd As IntPtr, ByVal msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr, ByRef plResult As IntPtr) As Integer

.

static extern void DwmEnableBlurBehindWindow(IntPtr hwnd, ref DWM_BLURBEHIND blurBehind);

.

Private Shared Sub DwmEnableBlurBehindWindow(ByVal hwnd As IntPtr, ByRef blurBehind As DWM_BLURBEHIND)

.

static extern int DwmExtendFrameIntoClientArea(IntPtr hwnd, ref MARGINS margins);

.

Private Shared Function DwmExtendFrameIntoClientArea(ByVal hwnd As IntPtr, ByRef margins As MARGINS) As Integer

.

static extern int DwmGetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE dwAttribute, out bool pvAttribute, int cbAttribute);

.

static extern int DwmGetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE dwAttribute, out RECT pvAttribute, int cbAttribute);

gdi32

.

    static extern System.UInt16  SetWindowRgn(IntPtr hWnd, IntPtr hRgn, bool bRedraw);

.

        static extern IntPtr GetDC(IntPtr hWnd);

.

        static extern IntPtr GetDC(IntPtr hWnd);

.

            Graphics graphics = Graphics.FromHwnd(IntPtr.Zero);

.

            Graphics graphics = Graphics.FromHwnd(IntPtr.Zero);

.

    Graphics vGraphics = Graphics.FromHwnd(Handle);

.

        static extern IntPtr GetDC(IntPtr hWnd);

.

        using (System.Drawing.Graphics g = System.Drawing.Graphics.FromHwnd(IntPtr.Zero))

.

        Using g As System.Drawing.Graphics = System.Drawing.Graphics.FromHwnd(IntPtr.Zero)

.

        Graphics g = Graphics.FromHwnd(IntPtr.Zero);

.

  static extern IntPtr GetDC(IntPtr hwnd);

.

  static extern Int32 ReleaseDC(IntPtr hwnd, IntPtr hdc);

.

      static extern IntPtr GetDC(IntPtr hwnd);

.

      static extern Int32 ReleaseDC(IntPtr hwnd, IntPtr hdc);

.

    private static IntPtr HWND_BROADCAST = new IntPtr(0xffff);

.

    private static IntPtr HWND_TOP = new IntPtr(0);

.

    private static IntPtr HWND_BOTTOM = new IntPtr(1);

.

    private static IntPtr HWND_TOPMOST = new IntPtr(-1);

.

    private static IntPtr HWND_NOTOPMOST = new IntPtr(-2);

.

    private static IntPtr HWND_MESSAGE = new IntPtr(-3);

.

    private static extern int SendMessage(IntPtr hWnd, WindowsMessages wMsg, IntPtr wParam, IntPtr lParam);

.

        long result = SendMessage(HWND_BROADCAST, WindowsMessages.WM_FONTCHANGE, IntPtr.Zero, IntPtr.Zero);

.

public static extern IntPtr GetDC(IntPtr hWnd);

.

public static extern IntPtr GetDC(IntPtr hWnd);

.

    Graphics vGraphics = Graphics.FromHwnd(Handle);

.

    Using G = Graphics.FromHwnd(Me.Handle)

aygshell

.

  static extern uint SHFullScreen(IntPtr hwndRequester, uint dwState);

.

  Public Shared Function SHFullScreen( hWnd as IntPtr, flags as Integer ) as Integer

.

Hide the Start button icon on the navigation bar. When the Start icon is hidden, the shell is in a special state in which clicking or tapping the navigation bar will not display the drop-down Start menu. The navigation bar is essentially disabled when in this state. While in this mode, WM_LBUTTONDOWN and WM_LBUTTONUP messages will be forwarded to hwndRequester. This allows an application to drop out of this mode by calling this function with the SHFS_SHOWSTARTICON, when the user clicks or taps the navigation bar.

.

static extern bool SHFullScreen(IntPtr hwndRequester, uint dwState);

.

   IntPtr hwnd = GetCapture();

.

      return SHFullScreen(hwnd, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON | SHFS_HIDESTARTICON);

.

      return SHFullScreen(hwnd, SHFS_SHOWTASKBAR | SHFS_SHOWSIPBUTTON | SHFS_SHOWSTARTICON);

.

   public IntPtr hwndClient = IntPtr.Zero;

.

Use this in conjunction with the SetCapture/GetCapture HWND sample:

.

static bool RecognizeGesture(IntPtr hWnd, int x, int y)

.

   shrginfo.hwndClient = hWnd;

.

static extern bool SHSipPreference(IntPtr hwnd, SIPSTATE st);

.

Declare Function SHSipPreference Lib "aygshell.dll" (hwnd as IntPtr, st as Integer) As Bool

.

static extern bool SHSipPreference(IntPtr hwnd, SIPSTATE st);

kernel32

.

static extern bool CommConfigDialog(string lpszName, IntPtr hWnd,

.

Private Function ShowWindow(ByVal hwnd As IntPtr, ByVal nCmdShow As ShowWindowCommands) As Boolean

.

Dim hwnd As New IntPtr(0)

.

hwnd = GetConsoleWindow()

.

If (hwnd <> IntPtr.Zero) Then

.

    ShowWindow(hwnd, ShowWindowCommands.ShowMinimized)

.

  SetPriorityClass(mhHwnd, CType(20, System.IntPtr))    '20 = high !!

msi

.

static extern int MsiSetInternalUI(int dwUILevel, ref IntPtr phWnd);

.

static extern int MsiSetInternalUI(INSTALLUILEVEL dwUILevel, ref IntPtr phWnd);

.

Private Function MsiSetInternalUI(dwUILevel As INSTALLUILEVEL, ByRef phWnd As IntPtr) As Integer

.

IntPtr hwnd = IntPtr.Zero;

.

MsiUtils.MsiSetInternalUI(MsiUtils.INSTALLUILEVEL.INSTALLUILEVEL_NONE , ref hwnd);

shlwapi

.

     [In] IntPtr hwnd);

.

    void SetWindow(IntPtr hwnd, ref RECT rect);

.

    void QueryFocus(out IntPtr phwnd);

.

    IntPtr hwndEdit,

.

Declare Function SHAutoComplete Lib "shlwapi.dll" (ByVal hWndEdit As IntPtr, ByVal dwFlags As AutoCompleteFlags) As Integer

.

    [In] IntPtr hwnd,

Constants

.

LRESULT APIENTRY buttonPlsVisibleProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)

.

            MessageBox(hWnd, L"Hello bn", NULL, MB_OK);

.

        //MoveWindow(hWnd, r.right - 28, 6, 24, 24, TRUE);

.

        //SetBitmap(hWnd, (isPlaylistVisible ? IDB_RESTORE_PRESSED : IDB_CLOSE_PRESSED));

.

        //MoveWindow(hWnd, r.right - 29, 5, 24, 24, TRUE);

.

        //SetBitmap(hWnd, (isPlaylistVisible ? IDB_RESTORE_NORMAL : IDB_CLODE_NORMAL));

.

    return CallWindowProc(buttonPlsVisible_proc, hWnd, Msg, wParam, lParam);

.

            public const uint GW_HWNDFIRST = 0;

.

            public const uint GW_HWNDLAST = 1;

.

            public const uint GW_HWNDNEXT = 2;

.

            public const uint GW_HWNDPREV = 3;

.

            public const uint GW_HWNDFIRST = 0;

.

            public const uint GW_HWNDLAST = 1;

.

            public const uint GW_HWNDNEXT = 2;

.

            public const uint GW_HWNDPREV = 3;

.

    GW_HWNDFIRST = 0

.

    GW_HWNDLAST = 1

.

    GW_HWNDNEXT = 2

.

    GW_HWNDPREV = 3

.

static readonly int GWL_HWNDPARENT = -8;

.

Public Const GWL_HWNDPARENT = -8

.

     GWLP_HWNDPARENT = -8,

33: HWND
.
Summary
HWND Constants (from winuser.h)
.

public const IntPtr HWND_BROADCAST = new IntPtr(0xffff);

.

public const IntPtr HWND_TOP       = new IntPtr(0);

.

public const IntPtr HWND_BOTTOM    = new IntPtr(1);

.

public const IntPtr HWND_TOPMOST   = new IntPtr(-1);

.

public const IntPtr HWND_NOTOPMOST = new IntPtr(-2);

.

public const IntPtr HWND_MESSAGE   = new IntPtr(-3);

.

Public Const HWND_BROADCAST As Int32 = &HFFFF

.

Public Const HWND_TOP As Int32       = &H0

.

Public Const HWND_BOTTOM As Int32    = &H1

.

Public Const HWND_TOPMOST As Int32   = -&H1

.

Public Const HWND_NOTOPMOST As Int32 = -&H2

.

Public Const HWND_MESSAGE As Int32   = -&H3

.
Summary
To create a message-only window, use the SetParent function to set the parent of a window to HWND_MESSAGE, or use HWND_MESSAGE as the parent in the CreateWindow or CreateWindowEx function.
.

public static IntPtr HWND_MESSAGE = new IntPtr(-3);

35: TCM_
.

    // (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L)

.

    // (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))

.

    // (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L)

.

    // (BOOL)SNDMSG((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))

.

    // (BOOL)SNDMSG((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))

.

    // (int)SNDMSG((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM FAR*)(pitem))

.

    // (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)

.

    // (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L)

.

    // (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT FAR*)(prc))

.

    // (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0)

.

    // (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)

.

    // (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO FAR*)(pinfo))

.

    // (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)

.

    // (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT FAR *)prc)

.

    // (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))

.

    //     (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L)

.

    //     (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))

.

    //     (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L)

.

    // (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0)

.

    // SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0)

.

    //     (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x)

.

    //     (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)

.

    // (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG (fHighlight, 0))

.

    //     (DWORD)SNDMSG((hwnd), TCM_SETEXTENDEDSTYLE, 0, dw)

.

    //     (DWORD)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0)

.

    '     (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L)

.

    '     (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))

.

    '     (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L)

.

    '     (BOOL)SNDMSG((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))

.

    '     (BOOL)SNDMSG((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))

.

    '     (int)SNDMSG((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM FAR*)(pitem))

.

    '     (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)

.

    '     (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L)

.

    '     (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT FAR*)(prc))

.

    '     (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0)

.

    '     (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)

.

    '     (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO FAR*)(pinfo))

.

    '     (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)

.

    '     (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT FAR *)prc)

.

    '     (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))

.

    '     (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L)

.

    '     (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))

.

    '     (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L)

.

    '     (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0)

.

    '     SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0)

.

    '     (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x)

.

    '     (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)

.

    '     (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG (fHighlight, 0))

.

    '     (DWORD)SNDMSG((hwnd), TCM_SETEXTENDEDSTYLE, 0, dw)

.

    '     (DWORD)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0)

36: WA_
.

     if (m.Msg == Win32.WM_ACTIVATE && m.HWnd == f.Handle

.

        public const int ERROR_HWNDS_HAVE_DIFF_PARENT = 1441;

.

        public const int OLE_E_INVALIDHWND = (int)(0x8004000F - 0x100000000);

.

        public const int DRAGDROP_E_INVALIDHWND = (int)(0x80040102 - 0x100000000);

.

        public const int OLEOBJ_S_INVALIDHWND = 0x00040182;

irprops

.

static extern uint BluetoothAuthenticateDeviceEx(IntPtr hwndParentIn, IntPtr hRadioIn, ref BLUETOOTH_DEVICE_INFO pbtdiInout, BLUETOOTH_OOB_DATA pbtOobData, uint authenticationRequirement);

.

static extern uint BluetoothAuthenticateDeviceEx(IntPtr hwndParentIn, IntPtr hRadioIn, ref BLUETOOTH_DEVICE_INFO pbtdiInout, BLUETOOTH_OOB_DATA pbtOobData, uint authenticationRequirement);

Structures

.

    public IntPtr hwndOwner;

.

     Public hwndOwner As IntPtr

.

   public IntPtr hwnd;

.
    • Desktop handle to the window specified by hwnd. This is returned only if BroadcastSystemMessageEx specifies BSF_RETURNHDESK and BSF_QUERY.
.
  • hwnd
.

        public IntPtr        hwnd;          // might be NULL (indicating no owner window)

.

    public IntPtr hwndCombo;

.

    public IntPtr hwndEdit;

.

    public IntPtr hwndList;

.

    hwndCombo As Long

.

    hwndEdit As Long

.

    hwndList As Long

.

   SendMessage(hWnd, WM_COPYDATA, IntPtr.Zero, copyDataBuff);

.

        public IntPtr hwndParent;

.

        Public hwndParent As IntPtr

.

            public IntPtr hwndParent;

.

    Public hwndParent As IntPtr

.

    public IntPtr hwndApp;

.

    Public hwndApp As IntPtr

.

     IntPtr hWnd;

.

        public IntPtr hwnd;

.

        Public hWnd As IntPtr

.

    public IntPtr hwnd;

.

    Public hwnd As IntPtr

.

    public IntPtr        hwndActive;

.

    public IntPtr        hwndFocus;

.

    public IntPtr        hwndCapture;

.

    public IntPtr        hwndMenuOwner;

.

    public IntPtr        hwndMoveSize;

.

    public IntPtr        hwndCaret;

.

    Public hwndActive As IntPtr

.

    Public hwndFocus As IntPtr

.

    Public hwndCapture As IntPtr

.

    Public hwndMenuOwner As IntPtr

.

    Public hwndMoveSize As IntPtr

.

    Public hwndCaret As IntPtr

.

    public IntPtr hwnd;

.

    public IntPtr hwnd;

53: MSG
.

    public IntPtr hwndOwner;

54: NMHDR
.

   public IntPtr hwndFrom;

.

   Public hwndFrom As IntPtr

.

    /// taskbar status area. The Shell uses hWnd and uID to identify which icon to operate on

.

    public IntPtr hwnd;

.

    /// Application-defined identifier of the taskbar icon. The Shell uses hWnd and uID to identify

.

    /// associated with a single hWnd by assigning each a different uID.

.

    /// notifications to the window identified in hWnd.

.

    public IntPtr hWnd;

.

    Dim hWnd As IntPtr

.

   public IntPtr hWnd;

.

    int hwndOwner;

.

    Public hwndOwner As IntPtr  

.

   public IntPtr hwndOwner;

.

    Public hwndOwner As IntPtr

.

    public IntPtr hwndOwner;        

.

   public int hwndParent = 0;

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: