s***@gmail.com
2008-03-04 12:18:19 UTC
hello we use VC8 and develop an MFC SDI application ith several
modeless windows (panes). (we use Codejock Xtreme toolkit for UI)
we encounter the following bug which causes the application to hang:
whenever the user edits an edit box in one of our modeless windows,
and then presses alt-F4 to close the application (while still editing
the edit box), the messagebox (prompting to save the document before
closing) appears HIDDEN behind the mainframe. The application is not
responding (because the messagebox is still open) but the message box
is not shown and the user has no indication that a messagebox has been
opened. Only when pressing Alt, or cycling windows with alt tab, the
message appears.
I use something similar to the folloing code :
BOOL confirm(HWND hWnd, bool OnExit){
...
MessageBox(hWnd, "Save before exit?"", "Save?", MB_YESNOCANCEL |
MB_ICONQUESTION | MB_TOPMOST|MB_TASKMODAL))
now, I have tried MB_SETFOREGROUND, MB_TASKMODAL, and other
switches, tried AfxMessageBox() instead, tried passing NULL or a
mainframe pointer as a window handle, nothing seems to fix this...
Anyone has any idea how to handle this??
10x a lot
modeless windows (panes). (we use Codejock Xtreme toolkit for UI)
we encounter the following bug which causes the application to hang:
whenever the user edits an edit box in one of our modeless windows,
and then presses alt-F4 to close the application (while still editing
the edit box), the messagebox (prompting to save the document before
closing) appears HIDDEN behind the mainframe. The application is not
responding (because the messagebox is still open) but the message box
is not shown and the user has no indication that a messagebox has been
opened. Only when pressing Alt, or cycling windows with alt tab, the
message appears.
I use something similar to the folloing code :
BOOL confirm(HWND hWnd, bool OnExit){
...
MessageBox(hWnd, "Save before exit?"", "Save?", MB_YESNOCANCEL |
MB_ICONQUESTION | MB_TOPMOST|MB_TASKMODAL))
now, I have tried MB_SETFOREGROUND, MB_TASKMODAL, and other
switches, tried AfxMessageBox() instead, tried passing NULL or a
mainframe pointer as a window handle, nothing seems to fix this...
Anyone has any idea how to handle this??
10x a lot