Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have a AfxMessageBox(str, MB_ICONERROR, 0)which is on top and application waits for an OK to go on. But if user change the focus I mean point outside the displayed message, the message falls behind.
What can I do to display message always on top? I mean the message would not falls behind?

Tanks
M.H
Posted

1 solution

If you really need, you may specify the MB_SYSTEMMODAL style (see MSDN[^]). Namely
C++
AfxMessageBox(str, MB_ICONERROR | MB_SYSTEMMODAL, 0);
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900