why message box is always hidden behind main dialog and cannot be shown on the top

Posted by Cougar_usa on Stack Overflow See other posts from Stack Overflow or by Cougar_usa
Published on 2009-08-12T17:34:54Z Indexed on 2010/04/12 12:03 UTC
Read the original article Hit count: 233

Filed under:
|
|
|
|

I am using MFC to write a GUI application. I chose dialog-based application, and put picture control, edit box and buttons on it. When the picture control is mapped to the class derived from CWnd using DDX_Control, all the message boxes (including default system message box pop up when you enter invalid input in the edit box) are hidden behind main dialog until you use "alt + tab" to bring them to front. If I map the picture control to the default CStatic class, the above problem disappeared. Do anyone has some hints to solve this problem? Thank you in advance for any help.

© Stack Overflow or respective owner

Related posts about messagebox

Related posts about mfc