Navigation:  ThinBASIC Modules > UI (User Interface) > Windows API >

Win_PostMessage

Previous pageReturn to chapter overviewNext page

 

Description

 

Places (posts) a message in the message queue associated with the thread that created the specified window and returns without waiting for the thread to process the message.

 

Syntax

 

n = Win_PostMessage(hWnd, Msg, wParam, lParam)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle to the window whose window procedure is to receive the message. The following values have special meanings.

 

%HWND_BROADCAST

The message is posted to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows. The message is not posted to child windows.

%NULL

The function behaves like a call to PostThreadMessage with the dwThreadId parameter set to the identifier of the current thread.

 

Msg

Number

No

Specifies the message to be posted.

wParam

Number

No

Specifies additional message-specific information.

lParam

Number

No

Specifies additional message-specific information.

 

Remarks

 

For additional info, please refer to MS documentation at: http://msdn.microsoft.com/en-us/library/ms644944(VS.85).aspx

 

Restrictions

 

See also

 

Examples