i soved it!!!!

a short description of the solution:
when the app is loaded, first of all, i display a dialog box using CreateDialog (it's saying "initializing..."). then i explicitly set the focus on that dialog! after initialization, i hide the dialog and then use it (the window handle) as parent for all the other dialogs i create.

this works, but should not be considered to be the way to do it...