Skip to content

Instantly share code, notes, and snippets.

@timsneath
Created September 22, 2020 03:47
Show Gist options
  • Save timsneath/9815680a8ddd11572a9f00123582b756 to your computer and use it in GitHub Desktop.
Save timsneath/9815680a8ddd11572a9f00123582b756 to your computer and use it in GitHub Desktop.
final result = MessageBox(
NULL,
TEXT("This is one of those messages that nobody will ever read. They'll "
"just click the default button, and about a millisecond later, "
"they'll experience a pang of concern as they wonder whether Windows "
"was giving them one last opportunity to perform a critical task "
"before all their files were wiped.\n\nWhat even is the difference "
"between Cancel, Try Again and Continue?"),
TEXT('Critical system message'),
MB_ICONEXCLAMATION | // Warning
MB_CANCELTRYCONTINUE | // Action button
MB_DEFBUTTON2 // Second button is the default
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment