oi10:presentation_server:postwinmsg_method_system

POSTWINMSG Method (System)

This method uses the Windows API PostMessage function to place a message in the message queue associated with the thread that created the target window and returns without waiting for the thread to process the message.

SuccessFlag = Exec_Method( "SYSTEM". "POSTWINMSG", hwnd, uMsg, wParam, lParam )

NameRequiredDescription
hwndYesA handle to the window whose window procedure is to receive the message.
uMsgYesInteger specifying the message to be posted.
wParamNoMessage-specific integer value. Defaults to 0.
IParamNoMessage-specific integer value. Defaults to 0.

TRUE$ if the message was posted successfully, or FALSE$ otherwise.

Equates for the common window messages can be found the MSWin_WindowMessage_Equates insert record.

This method uses the Windows API PostMessage function internally – for further information please see the MSDN website.

 
//// Post a WM_CLOSE message to a form (this is basically the same as//
   //// calling it's CLOSE method).//
   
   $Insert MSWin_WindowMessage_Equates
   
   hwnd   = Get_Property( "MYWIN", "HANDLE" )
   uMsg   = WM_CLOSE$
   wParam = 0
   lParam = 0
   
   RetVal = Exec_Method( "SYSTEM", "POSTWINMSG", hwnd, uMsg, wParam, lParam )
 
 
 

SYSTEM SENDWINMSG method, Common GUI QUALIFYWINEVENT method, Common GUI WINMSG event.

  • oi10/presentation_server/postwinmsg_method_system.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1