Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   SetTimer() function in MFC (http://www.go4expert.com/forums/settimer-function-mfc-t1588/)

nayansoni 11Oct2006 13:45

SetTimer() function in MFC
 
syntax for SetTimer function is as follows:-
UINT SetTimer( UINT nIDEvent, UINT nElapse, void (CALLBACK EXPORT* lpfnTimer)(HWND, UINT, UINT, DWORD) );

In this the 2nd parameter is the time in milliseconds after which WM_TIMER message is sent.

Now my query is that what is the maximum limitation on the value of the second parameter(nElapse)?

shabbir 11Oct2006 14:06

Re: SetTimer() function in MFC
 
You have posted the query in Article / Source code section and I have moved it to Queries and discussion forum
Quote:

Originally Posted by nayansoni
Now my query is that what is the maximum limitation on the value of the second parameter(nElapse)?

The limit of UINT on the system and if int is of 4 bytes then the limit of UINT become 2^32 - 1 = 4294967295

nayansoni 11Oct2006 14:16

Re: SetTimer() function in MFC
 
Thanks shabbir

shabbir 11Oct2006 16:00

Re: SetTimer() function in MFC
 
My pleasure.


All times are GMT +5.5. The time now is 17:56.