I created the application in VC ++, the problem is that if an error occurs, I display a MessageBox. but this MessageBox is not displayed in front. I have to press the ALT key to stand in front of this application. My application becomes active until I press ALT. and click OK on the MessageBox.
Here is the attached code.
MessageBox(NULL,"Invalid File, Parsing is going to be terminate");
AfxMessageBox("Win32 MessageMessage",MB_OK | MB_ICONEXCLAMATION | MB_TOPMOST);
I am very grateful if anyone help me
source share