3
我有一個wxDialog,我打開一個wxFrame。現在我想知道什麼時候wxFrame被關閉了,所以我可以在Dialog調用者中做一些事情[在框架上我修改了一個列表,這個列表在對話框中也存在,我需要更新它(使用我提供的函數) ]。如何知道wxFrame何時關閉?
任何想法?我使用C++ wxWidgets的2.8-10
這裏是誰調用框架函數的代碼:
OK=false;
password dialog(this,&OK); //I check the admin password, if it's correct, OK is true
dialog.ShowModal();
if (OK){
GestionFrame* Frame = new GestionFrame(0,listaGlobal);
//listaGlobal is a list of names
Frame->Show();
reload(); //reload the list of names on the dialog, but reload must be called after the frame is closed (and the data is saved)
謝謝,我想這應該像你說的那樣。 事實上,「確定」的方式是完全不需要的,我要避免它。 再次感謝您! – fern17 2010-02-28 06:29:05