title: MFC MessageBox Not Showing at Top Of All Windows
body: <p>i have created an Application in VC++, the Problem is that if an Error Occurs i display the MessageBox. but that MessageBox doesn't show at front.  i have to press ALT key to become in-front of that application. My Application becomes in-active until i press ALT. and Press OK on the MessageBox.</p>
  
  <p>Here is the Code Attached.</p>
  
  <pre><code>MessageBox(NULL,"Invalid File, Parsing is going to be terminate");
  </code></pre>
  
  <p><code>AfxMessageBox("Win32 MessageMessage",MB_OK | MB_ICONEXCLAMATION | MB_TOPMOST);</code>  </p>
  
  <p>i wil very grateful if somebody helps me</p>