====== POSTWINMSG method (System) ====== ==== Description ==== 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. ==== Syntax ==== SuccessFlag = Exec_Method( "SYSTEM". "POSTWINMSG", hwnd, uMsg, wParam, lParam ) ==== Parameters ==== ^Name^Required^Description^ |hwnd|Yes|A handle to the window whose window procedure is to receive the message.| |uMsg|Yes|Integer specifying the message to be posted.| |wParam|No|Message-specific integer value. Defaults to 0.| |IParam|No|Message-specific integer value. Defaults to 0.| ==== Returns ==== TRUE$ if the message was posted successfully, or FALSE$ otherwise. ==== Remarks ==== 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. ==== Example ==== //// 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 ) ==== See Also ==== SYSTEM SENDWINMSG method, Common GUI QUALIFYWINEVENT method, Common GUI WINMSG event.