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]

mpr

.

private static extern int WNetAddConnection3(IntPtr hWndOwner,

.

    ''' <param name="hWndOwner"></param>

.

    Private Shared Function WNetAddConnection3(ByVal hWndOwner As IntPtr, _

.

WNetAddConnection3(hWnd, ref ConnInf, null, null,

.

private static extern int WNetAddConnection3(IntPtr hWndOwner,

.

    ''' <param name="hWndOwner"></param>

.

    Private Shared Function WNetAddConnection3(ByVal hWndOwner As IntPtr, _

.

WNetAddConnection3(hWnd, ref ConnInf, null, null,

.

    IntPtr      hwndOwner,

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,

ole32

.

static extern void OleCreatePropertyFrame(IntPtr hwndOwner, int x, int y,

.

    (ByVal hwndOwner As IntPtr, _

.

    static extern int OleCreatePropertyFrame(IntPtr hwndOwner,

.

static extern void OleCreatePropertyFrame(IntPtr hwndOwner, uint x, uint y,

.

    (ByVal hwndOwner As IntPtr, _

.

static extern int RegisterDragDrop(IntPtr hwnd, IDropTarget pDropTarget);

.

DRAGDROP_E_INVALIDHWND = ?;

winmm

.

static extern Int32 mciSendString(string command, StringBuilder buffer, int bufferSize, IntPtr hwndCallback);

.

Private Shared Function mciSendString(ByVal command As String, ByVal buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hwndCallback As IntPtr) As Integer

.

Declare Ansi Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal command As String, ByRef buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hWndCallback As IntPtr) As Integer

.

static extern Int32 mciSendString(string command, string buffer, int bufferSize, IntPtr hwndCallback);

.

     private IntPtr hwndOwner;

.

//     private UInt32 cMultipleItems; //Unioned with hwndOwner /* if _MULTIPLE, the number of items per channel */

.

        get { return this.hwndOwner; }

.

        set { this.hwndOwner = value; }

.

        get { return (UInt32)this.hwndOwner; }

.

        set { this.hwndOwner = (IntPtr)value; }

.

     Dim hWndOwner As IntPtr

imm32

.

          IntPtr hWnd,    

.

public static extern IntPtr ImmGetContext(IntPtr hWnd);

.

Declare Function ImmGetContext Lib "Imm32.dll" (hWnd As Intptr) As Intptr

.

Friend Shared Function ImmGetContext(hWnd As IntPtr) As IntPtr

.

    public static extern IntPtr ImmGetContext(IntPtr hwnd);

.

    public static extern int ImmSimulateHotKey(IntPtr hwnd, int lngHotkey);

.

public string[] GetReverseConversion(IntPtr AHwnd,string AText)

.

    IntPtr hIMC = ImmGetContext(AHwnd);

.

public static extern bool ImmReleaseContext(IntPtr hWnd,IntPtr hIMC);

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,

21: 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);

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

24: 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;

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);

credui

.

      public IntPtr hwndParent;

.

    credui.hwndParent = this.Handle;

.

     public IntPtr hwndParent;

mapi32

.

  uint error = MAPILogon(hwnd, null, null, MAPI_LOGON_UI, 0, ref session);

.

    Private Shared Function MAPISendMail(ByVal sess As IntPtr, ByVal hwnd As IntPtr, ByVal message As MapiMessage,

.

    static extern int MAPISendMail(IntPtr sess, IntPtr hwnd, MapiMessage message, int flg, int rsv);

Delegates

.

public delegate int BrowseCallbackProc(IntPtr hwnd, int uMsg, IntPtr lParam, IntPtr lpData);

.

Public Delegate Function BrowseCallbackProc(hwnd As IntPtr, uMsg As Integer, lParam As IntPtr, lpData As IntPtr) As Integer

.

private delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);

.

Private Delegate Function EnumWindowsProc(ByVal hWnd As IntPtr, ByVal lParam As IntPtr) As Boolean

.

If you’re going to use the lParam to return a by-value result (such as the hwnd of a window you are looking for), you’ll want to send lParam by reference:

.

private delegate bool EnumWindowsProc(IntPtr hWnd, ref IntPtr lParam);

.

Private Delegate Function EnumWindowsProc(ByVal hWnd As IntPtr, ByRef lParam As IntPtr) As Boolean

.

hwnd in Type: HWND A handle to the window associated with the timer.

.

delegate IntPtr WndProc (IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);

.

Delegate Function WndProc (ByVal hWnd As IntPtr, ByVal msg As Integer, _

.

private delegate IntPtr WndProc(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);

.

Private Delegate Function WndProc(ByVal hWnd As IntPtr, ByVal msg As UInteger, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr

setupapi

.

ByVal EnumPtr As Long, ByVal hwndParent As Long, _

.

    public static extern IntPtr SetupDiGetClassDevs(ref Guid classGuid, IntPtr enumerator, IntPtr hwndParent, UInt32 flags);

.

                                              IntPtr hwndParent,

.

   IntPtr hwndParent,

.

   IntPtr hwndParent,

.

    ByVal hwndParent As Integer, _

.

    ByRef hwndParent As String, _

.

    ByVal hwndParent As IntPtr, _

.

        public IntPtr hwndParent;

.

        Public hwndParent As IntPtr

Interfaces

.

     int AddDesktopItemWithUI(IntPtr hwnd, ref COMPONENT pcomp, DtiAddUI dwFlags);

.

     int AddUrl(IntPtr hwnd, [MarshalAs(UnmanagedType.LPWStr)] string pszSource, ref COMPONENT pcomp, AddURL dwFlags);

.

    Function AddDesktopItemWithUI(ByVal hwnd As IntPtr, ByRef pcomp As COMPONENT, ByVal dwFlags As DtiAddUI) As Integer

.

    Function AddUrl(ByVal hwnd As IntPtr, <MarshalAs(UnmanagedType.LPWStr)> ByVal pszSource As String, ByRef pcomp As COMPONENT, ByVal dwFlags As AddURL) As Integer

.

   void Authenticate(IntPtr phwnd,

.

   Sub Authenticate(IntPtr phwnd,

.

    /// <param name="phwnd">The HWND of the parent window for a default user interface.</param>

.

    ///Client should also set phwnd to zero.</param>

.

    public void Authenticate(IntPtr phwnd, ref string pszUsername, ref string pszPassword)

.

        phwnd = IntPtr.Zero;

.

        IntPtr hwndEdit,

.

        int GetWindow(out IntPtr phwnd);

.

    Public Overridable Sub GetWindow(ByRef phwnd As System.IntPtr) Implements IDeskBand.GetWindow, IDockingWindow.GetWindow, IOleWindow.GetWindow

.

    phwnd = Handle

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Public hwnd As IntPtr

.

        int GetWindow(out IntPtr phwnd);

.

    Public Overridable Sub GetWindow(ByRef phwnd As System.IntPtr) Implements IDeskBand.GetWindow, IDockingWindow.GetWindow, IOleWindow.GetWindow

.

    phwnd = Handle

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Sub GetWindow(ByRef phwnd As System.IntPtr)

.

    Public hwnd As IntPtr

.

     uint ShowMessage(IntPtr hwnd,

.

     uint ShowHelp(IntPtr hwnd, [MarshalAs(UnmanagedType.LPWStr)] string pszHelpFile,

.

    Function ShowMessage(ByVal hwnd As IntPtr, <MarshalAs(UnmanagedType.LPWStr)> ByVal lpstrText As String, <MarshalAs(UnmanagedType.LPWStr)> ByVal lpstrCaption As String, ByVal dwType As Integer, <MarshalAs(UnmanagedType.LPWStr)> ByVal lpstrHelpFile As String, ByVal dwHelpContext As Integer, ByRef lpResult As Integer) As Integer

.

    Function ShowHelp(ByVal hwnd As IntPtr, <MarshalAs(UnmanagedType.LPWStr)> ByVal pszHelpFile As String, ByVal uCommand As Integer, ByVal dwData As Integer, ByVal ptMouse As tagPoint, <MarshalAs(UnmanagedType.IDispatch)> ByVal pDispatchObjectHit As Object) As Integer

.

        [In] IntPtr hwnd,

.

    void DragEnter([In] IntPtr hwndTarget, [In, MarshalAs(UnmanagedType.Interface)] IDataObject_Com dataObject, [In] ref drawing.Point pt, [In] DragDropEffects effect);

.

        dropHelper.DragEnter(hWnd, e.Data as IDataObject_Com, ref point, e.Effects);

.

                   [In, ComAliasName ( "ShellObjects.wireHWND" )] ref IntPtr hwnd,

.

             HandleRef hwndParent,

.

             ByVal hwndParent As IntPtr,

.

    void Redirect ( [In] ref Guid rfid, [In] IntPtr hwnd, [In] uint Flags,

.

    void Redirect ( [In] ref Guid rfid, [In] IntPtr hwnd, [In] uint Flags,

.

     void DoVerb(uint iVerb, uint lpmsg, object pActiveSite, uint lindex, uint hwndParent, uint lprcPosRect);

.

    /// <param name="phwnd">Pointer to where to return the window handle.</param>

.

    void GetWindow (out IntPtr phwnd) ;

.

      ''' <param name="phwnd">Pointer to where to return the window handle.</param>

.

      Sub GetWindow(<System.Runtime.InteropServices.Out()> ByRef phwnd As IntPtr)

.
IMPORTANT
The phwnd parameter for the VB Definition of GetWindow MUST be ByRef or else a 'protected memory' error will occur. - Andrew Powell 04.27.08
.

        /// <param name="hwndParent">A handle to the dialog box's parent window.</param>

.

            IntPtr hwndParent, //HWND

.

    void GetWindow(out IntPtr phwnd);

.

    /// <param name="hwnd">Optional window handle</param>

.

    void ParseDisplayName(IntPtr hwnd, IntPtr pbc, String pszDisplayName, UInt32 pchEaten, out IntPtr ppidl, UInt32 pdwAttributes);

.

    /// <param name="hwnd">If user input is required to perform the enumeration, this window handle should be used by the enumeration object as the parent window to take user input.</param>

.

    void EnumObjects(IntPtr hwnd, ESHCONTF grfFlags, out IntPtr ppenumIDList);

.

    /// <param name="hwndOwner">Handle to the owner window.</param>

.

    void CreateViewObject(IntPtr hwndOwner, [In] ref Guid riid, out IntPtr ppv);

.

    /// <param name="hwndOwner">Handle to the owner window that the client should specify if it displays a dialog box or message box.</param>

.

    void GetUIObjectOf(IntPtr hwndOwner, UInt32 cidl, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)]IntPtr[] apidl, [In] ref Guid riid, UInt32 rgfReserved, out IntPtr ppv);

.

    /// <param name="hwnd"> Handle to the owner window of any dialog or message boxes that the client displays.</param>

.

    void SetNameOf(IntPtr hwnd, IntPtr pidl, String pszName, ESHCONTF uFlags, out IntPtr ppidlOut);

.

    void Resolve(IntPtr hwnd, UnsafeNativeMethods.SLR_FLAGS fFlags);

.

    Sub Resolve(ByVal hWnd As IntPtr, ByVal fFlags As UInteger)

.

    void Resolve(IntPtr hwnd, UnsafeNativeMethods.SLR_FLAGS fFlags);

.

    <PreserveSig()> Function Resolve(ByVal hwnd As IntPtr, ByVal fFlags As Integer) As HRESULT

.

        [Out] out UInt32 phWnd);

.

        [Out] out UInt32 phWnd);

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


 
Access PInvoke.net directly from VS: