This function starts a timer.

#define INCL_WINTIMER /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HAB      hab;             /*  Anchor-block handle. */
HWND     hwnd;            /*  Window handle that is part of the timer identification. */
ULONG    idTimer;         /*  Timer identifier. */
ULONG    dtTimeout;       /*  Delay time in milliseconds. */
ULONG    idTimerStarted;  /*  Timer identity. */

idTimerStarted = WinStartTimer(hab, hwnd,
                   idTimer, dtTimeout);


[Back] [Next]