How do I handle win32 events from another thread?

70 Views Asked by At

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

0

There are 0 best solutions below