Why the widgets of one dialog can't be shown?

I want to create one waiting message dialog,during a long caculating process,the dialog can be created when the process started and can be destroied when the process finished,I use ApCreateModule(ABM_dlg_wait,NULL,NULL) to create the dialog,but the widget can’t be shown during the long caculating process,it 's very strange that the dialog
can be shown normally in other cases,such as I click one button and in the callback of button create the dialog.

I have solve the problem.