Снова Таймер

Discussion in 'WASM.WIN32' started by leeloo, Apr 27, 2008.

  1. leeloo

    leeloo New Member

    Blog Posts:
    0
    Joined:
    Jun 6, 2004
    Messages:
    31
    Необходимо обрабатывать мноооого таймеров ...

    Code (Text):
    1. invoke SetTimer,hWnd,1,10*1000,offset TimerProc
    2. invoke SetTimer,hWnd,2,100*1000,offset TimerProc
    3. invoke SetTimer,hWnd,3,40*1000,offset TimerProc
    4. invoke SetTimer,hWnd,4,60*1000,offset TimerProc
    5. .
    6. .
    7. .
    8. invoke SetTimer,hWnd,100,50*1000,offset TimerProc
    9.  
    10. TimerProc    proc   uses ebx edi     hWin:HWND, uMsg:UINT, idEvent:UINT, dwTime:DWORD
    11. .
    12. .
    13.  
    14. ?????????????
    15.  
    16.  
    17. TimerProc endp
    Как в TimerProc узнать какой таймер завершился?

    idEvent в TimerProc соответствует nIDEvent в SetTimer ?
     
  2. Rascalspb

    Rascalspb New Member

    Blog Posts:
    0
    Joined:
    May 19, 2005
    Messages:
    46
    Location:
    СПб
    hwnd
    [in] Handle to the window associated with the timer.
    uMsg
    [in] Specifies the WM_TIMER message.
    idEvent
    [in] Specifies the timer's identifier.
    dwTime
    [in] Specifies the number of milliseconds that have elapsed since the system was started. This is the value returned by the GetTickCount function.

    мсдн рулит
     
  3. Osen

    Osen Рие

    Blog Posts:
    0
    Joined:
    Apr 5, 2008
    Messages:
    283
    Location:
    Париж
    да