why message box is always hidden behind main dialog and cannot be shown on the top
- by Cougar_usa
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.