leo
leo

Reputation: 31

a c++ timer is blocking my entire class?

i guess there is some reasonable and an easy solution. So for instance i have:

INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{

time(2)

// anything else in the about class....

//return code

}

The problem is that the whole application almost freezes and i cannot do anything but "wait for the timer". How can i make the timer runs irrespectively to any other operation? 10x!

Upvotes: 0

Views: 92

Answers (1)

Mark Ransom
Mark Ransom

Reputation: 308158

You want to do a SetTimer call and either give it a pointer to a callback function, or respond to the WM_TIMER message that comes back.

Upvotes: 5

Related Questions