Hi,

I have a win32 application that displays a 32win window. This window's handler is hwin1. This window launchs a dialog( NOT Qdialog). the dialog's handler is hdlg. This dialog has multiple events. One of the event is refreshing hwin1. The other is launching a QDialog. My code to launch the QDialog is:

QApplication *a;
a = new QApplication(0, 0);
QWinWidget win(hDlg);
MyDialog *w = new MyDialog(&win);
ok = w->exec();


In my dialog I have an exit button and an action button. In the action button I am doing several actions that effects the display of hwin1. So in the end of the actions I am calling the function that send the message to the win32 window to refresh hwin1.

My problem is the display is refreshing only when I pushed the exit button of my Qdialog.
Also, as you can see from my code I don't have the a-<exec() command because I was thinking that the only events I have are the events of my QDialog and the rest of the events are handled by the win32 main window.

Do you think I am doing it right?

Thank you,