If you switch to your program in the task list (Alt-Tab) does the UI come
program open. If you can get this to happen in the debugger maybe you
could find out which code line causes it to exit.
I have a wierd problem. My app is a dialog, it has two buttons, Wizard
and Reconnect.
Clicking Wizard will take the user through a guide and connect to a
device.
Clicking reconnect will reconnect to the last used device without
going through the wizard.
When both functions finish they will call a common function
OnConnectionCompleted()
{
//in this function some buttons are hidden using myButton-
EnableWindow(false)
//and some static text is changed, nothing out of the ordinary
//Finally I call ShowWindow to send the window to the program bar
this->ShowWindow(SW_MINIMIZE);
::FlashWindow(GetHwnd(),true); //Flash once to show user where the
window went
}
Now to the problem. When running the wizard this works great, when
completing the main dialog is minimized to the program bar. However
when only using the reconnect button which after some reconnecting
calls the same function above, the program disappers. It is visible
using Alt-Tab but not on the Program bar. I recollect having a similar
problem many years ago when using SW_HIDE instead of MINIMIZE but I
cannot see that in the current project.
I just dont have any more clues on where to look now. I cannot have my
app disapear when minizing it so I jope anyone can come with
suggestions on where to look.