Tuesday, July 28, 2009

MessageBox

I've always assumed that passing a NULL HWND to MessageBox would prevent my windows from getting clicked on. Turns out, that isn't always true. In some cases--e.g. when non-modal dialogs or their children are visible--you can make sure that your message box is really, truly task-modal by passing MB_TASKMODAL in the flags.

No comments:

Post a Comment