The information in this article applies to:
SUMMARY
The explanation of the SetTimer() function in the Windows 3.1 Software Development Kit (SDK) "Programmer's Reference, Volume 2: Functions" is unclear about the use of the idTimer parameter and the function's return value. For example,
MORE INFORMATION
Below are excerpts from the Windows 3.1 SDK "Programmer's Reference, Volume
2: Functions," followed by paragraphs that provide more details.
This could be replaced with the following:
The "Return Value" section on page 875 states the following:
The return value is the identifier of the new timer if hwnd is NULL and the function is successful. An application passes this value to the KillTimer function to kill the timer. The return value is nonzero if hwnd is a valid window handle and the function is successful. Otherwise, the return value is zero. Another way to explain the SetTimer() return value is as follows: SetTimer returns a nonzero value if the timer was installed. If a timer could not be installed, SetTimer returns zero. If the hwnd parameter is NULL and SetTimer returns a nonzero value, the return value specifies the timer ID to be used in a call to KillTimer. If the hwnd parameter is not NULL and SetTimer returns a nonzero value, the idTimer parameter specifies the timer ID to be used in a call to KillTimer. In this case, the return value only signifies that SetTimer succeeded. Charles Petzold's "Programming Windows" (Microsoft Press) contains an entire chapter on using timers in Windows applications. Additional query words: 3.10
Keywords : kbdocfix kb16bitonly kbSDKPlatform kbGrpUser kbWndwMsg |
Last Reviewed: June 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |