|
// MultimediaTimer.h: interface for the MultimediaTimer class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MULTIMEDIATIMER_H__0B56066E_AC95_11D6_9A8E_FFCCBD6E847B__INCLUDED_)
#define AFX_MULTIMEDIATIMER_H__0B56066E_AC95_11D6_9A8E_FFCCBD6E847B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//���������� �������� ���
//typedef int (*funcptr)(); // funcptr is synonym for "pointer
// to function returning int"
//������� �� �������� ��� ������� �� ���� void
typedef void(*ThreadTimerProc)(void* obj,UINT idEvent);//
class MultimediaTimer
{
public:
ThreadTimerProc proc;//
void* object;
void StopTimer();
void MMTimerHandler();
void StartTimer(void* obj,int period,int resolution,ThreadTimerProc lpTimerProc);
virtual ~MultimediaTimer();
protected:
int i_count;
int i_MMperiod;//timer period
UINT m_idEvent;
static void CALLBACK TimerFunction(UINT wTimerID,UINT msg, DWORD dwUser, DWORD dw1,DWORD dw2);
};
#endif // !defined(AFX_MULTIMEDIATIMER_H__0B56066E_AC95_11D6_9A8E_FFCCBD6E847B__INCLUDED_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here