void* g_paclass=NULL;
.
.
.
g_paclass=this;
SetTimer(hWnd,1,1000,callbackfun);
void CALLBACK callbackfun(...)
{
Caclass* pthis=(Caclass*)g_paclass;
pthis->....
do something with pthis to control the class's member function.
}
void* g_paclass=NULL;
.
.
.
g_paclass=this;
SetTimer(hWnd,1,1000,callbackfun);
void CALLBACK callbackfun(...)
{
Caclass* pthis=(Caclass*)g_paclass;
pthis->....
do something with pthis to control the class's member function.
}