You set a breakpoint on all calls to MessageBoxA.