WinSetFocus - Syntax

This function sets the focus window.

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

HWND    hwndDeskTop;   /*  Desktop-window handle. */
HWND    hwndNewFocus;  /*  Window handle to receive the focus. */
BOOL    rc;            /*  Success indicator. */

rc = WinSetFocus(hwndDeskTop, hwndNewFocus);


[Back: WinSetFocus]
[Next: WinSetFocus Parameter - hwndDeskTop]