1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

SetTimer() function in MFC

Discussion in 'MFC' started by nayansoni, Oct 11, 2006.

  1. nayansoni

    nayansoni New Member

    Joined:
    Oct 11, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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)?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    You have posted the query in Article / Source code section and I have moved it to Queries and discussion forum
    The limit of UINT on the system and if int is of 4 bytes then the limit of UINT become 2^32 - 1 = 4294967295
     
  3. nayansoni

    nayansoni New Member

    Joined:
    Oct 11, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Thanks shabbir
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    My pleasure.
     

Share This Page