c++ - AfxMessageBox going on background -
in connection check showing modal dialog ensure connection. give people escape modal dialog want message box keep try connection or exit application.
source code :
void crobovibmainframe::opensystemsettingsdialog(int activetabindex /*= 0*/) { while (activetabindex >= 0) { m_settingsdialog = std::make_unique<settingsdialog>(this,activetabindex); m_settingsdialog->domodal(); activetabindex = getnotconnectedpsvcontrol(); if (afxmessagebox(polytec::text::tomessagestring(ids_psv_system_exit_window_msg), mb_yesno) == idno) { ::exitprocess(0); break; } } }
but messagebox alway showing in background. want on front. wrong in code? please suggest.
i able bring afxmessagebox front fix :
cwnd::postmessage(wm_syskeydown);
i not sure if way. fixed issues. can someone.
Comments
Post a Comment