Samuel
Samuel

Reputation: 314

How do I handle win32 events from another thread?

So i wanted to handle the win32 event callbacks from a separate thread so that i can handle other stuff in the background

I've tried std::thread but the declaration GetMessage(LPMSG,HWND,UINT,UINT) will only work with a window that is on the current thread

std::thread(EventThread) ; // i want to do this

So, Is there any way to wait for the events and stuff from another thread? Any help will be appreciated !

Bye, Samuel

Upvotes: 0

Views: 66

Answers (0)

Related Questions