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

user32

.

    static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

.

        PostMessage(hWnd, WM_CLOSE, IntPtr.Zero, IntPtr.Zero);

.

   Shared Function PostMessage(hWnd As IntPtr, Msg As UInteger, wParam As IntPtr, lParam As IntPtr) As<MarshalAs(UnmanagedType.Bool)> Boolean

.

     PostMessage(hWnd, WM_CLOSE, IntPtr.Zero, IntPtr.Zero)

.

        QS_POSTMESSAGE =    0x0008,

.

        QS_ALLPOSTMESSAGE = 0x0100,

.

        QS_ALLEVENTS = (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY),

.

        QS_ALLINPUT = (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE)

.
Summary
.

static extern bool PostMessage(HandleRef hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

.

Private Shared Function PostMessage(ByVal hWnd As IntPtr, ByVal Msg As UInteger, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As Boolean

.

class method PostMessage(hWnd: IntPtr; Msg: UInt32; wParam, lParam: IntPtr): Boolean; external;

.

A wrapper for PostMessage looking for errors:

.

    void PostMessageSafe( HandleRef hWnd, uint msg, IntPtr wParam, IntPtr lParam )

.

        bool returnValue = PostMessage( hWnd, msg, wParam, lParam );

.
Documentation
[PostMessage] on MSDN
.

MSDN recommends using PostQuitMessage over PostMessage when you want to send WM_QUIT http://msdn.microsoft.com/en-us/library/ms632641%28v=vs.85%29.aspx

Constants

.

        /// The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.

Enums

.

    ///The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.

.

    [Description("The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.")]

.

    '''The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.

.

    <Description("The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.")> _

.

  PM_QS_POSTMESSAGE = (QueueStatusFlags.QS_POSTMESSAGE | QueueStatusFlags.QS_HOTKEY | QueueStatusFlags.QS_TIMER) << 16,

.

    PM_QS_POSTMESSAGE = (QueueStatusFlags.QS_POSTMESSAGE Or QueueStatusFlags.QS_HOTKEY Or QueueStatusFlags.QS_TIMER) << 16

.

    QS_POSTMESSAGE = &H8

.

    QS_ALLEVENTS = (QS_INPUT Or QS_POSTMESSAGE Or QS_TIMER Or QS_PAINT Or QS_HOTKEY)

.

    QS_ALLINPUT = (QS_SENDMESSAGE Or QS_PAINT Or QS_TIMER Or QS_POSTMESSAGE Or QS_MOUSEBUTTON Or QS_MOUSEMOVE Or QS_HOTKEY Or QS_KEY)

.

    QS_ALLPOSTMESSAGE = &H100

.

  QS_POSTMESSAGE = 0x0008,

.

  QS_ALLPOSTMESSAGE = 0x0100,

.

  QS_ALLEVENTS = QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY,

.

  QS_ALLINPUT = QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE

.

   QS_POSTMESSAGE = &H8

.

   QS_ALLEVENTS = (QS_INPUT Or QS_POSTMESSAGE Or QS_TIMER Or QS_PAINT Or QS_HOTKEY)

.

   QS_ALLINPUT = (QS_SENDMESSAGE Or QS_PAINT Or QS_TIMER Or QS_POSTMESSAGE Or QS_MOUSEBUTTON Or QS_MOUSEMOVE Or QS_HOTKEY Or QS_KEY)

.

   QS_ALLPOSTMESSAGE = &H100


 
Access PInvoke.net directly from VS: