Jump to content

WinPostMsg: Difference between revisions

From EDM2
No edit summary
No edit summary
Line 1: Line 1:
  WinPostMsg
This function posts a message to the message queue associated with the window defined by hwnd.
 
==Syntax==
 
==Example Code==
Declaration:
<pre>
#define INCL_WINMESSAGEMGR /* Or use INCL_WIN, INCL_PM, Also in COMMON section */
#include <os2.h>
 
HWND      hwnd;      /* Window handle. */
ULONG    ulMsgid;  /*  Message identity. */
MPARAM    mpParam1;  /*  Parameter 1. */
MPARAM    mpParam2;  /*  Parameter 2. */
BOOL      rc;        /*  Message-posted indicator. */
 
rc = WinPostMsg(hwnd, ulMsgid, mpParam1, mpParam2);
</pre>
 
 
[[Category:Win]]
[[Category:Win]]




[[Category:WorkToDo]]
[[Category:WorkToDo]]

Revision as of 19:13, 14 May 2025

This function posts a message to the message queue associated with the window defined by hwnd.

Syntax

Example Code

Declaration:

#define INCL_WINMESSAGEMGR /* Or use INCL_WIN, INCL_PM, Also in COMMON section */
#include <os2.h>

HWND      hwnd;      /*  Window handle. */
ULONG     ulMsgid;   /*  Message identity. */
MPARAM    mpParam1;  /*  Parameter 1. */
MPARAM    mpParam2;  /*  Parameter 2. */
BOOL      rc;        /*  Message-posted indicator. */

rc = WinPostMsg(hwnd, ulMsgid, mpParam1, mpParam2);