Skip to content

Instantly share code, notes, and snippets.

@JoanM
Created December 9, 2016 15:13
Show Gist options
  • Save JoanM/fe72074b71f278dbacf174e1e749d709 to your computer and use it in GitHub Desktop.
Save JoanM/fe72074b71f278dbacf174e1e749d709 to your computer and use it in GitHub Desktop.
Win32 message loop sample
while( (bRet = GetMessage( &msg, NULL, 0, 0 )) != 0)
{
// No errors are handled, for simplicity purposes.
TranslateMessage(&msg);
DispatchMessage(&msg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment