News for hackers. Stuff that matters.
Re:TheForger's Win32 API Programming Tutorial by that_jojo on Wednesday November 06, 2019 @10:00PM (#21470010)
> You give the system a callback and it calls you with an event

Maybe I haven't done enough WinAPI programming, but where is that true? I know there are a few helper functions that automatically dispatch an event to a callback, but I thought in general all events had to be intercepted and dispatched in the message loop

Re:TheForger's Win32 API Programming Tutorial by projektfu on Thursday November 07, 2019 @07:22AM (#21472519)
Yes but windows calls your event loop directly for WM_PAINT as well as the event loop calling a system function that calls your window procedure, again investing control. On the Mac you used to hit test the event yourself and figure out which window it was meant for.