MFC dialog close issues -



MFC dialog close issues -

good day! have mfc dialog progress. dialog automatically closes after reaching 100% using postmessagew(wm_close). problem is, when, during progress, i'm moving dialog on screen, dialog not closing , wm_close message ignored. suggestions? thanks.

for modal dialog shouldn't need utilize wm_close message.

normally you'd utilize ok or cancel button events close it, phone call enddialog method functional code or homecoming when processing finish (assuming process run dialog initialised). can set homecoming value @ same time e.g. enddialog(2);.

either way dialog close 1 time th current message handler returns, there delay, in closure shouldn't much.

mfc modal-dialog

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -