
Q:How do I start a Dialog App in a HIDE state
Visual C++ 5.0/Win95
I'm doing a Dialog based App that shows a animated icon in the tray area.
When starting, the Dialog should not show itself. I've tried to override
OnInitDialog to make a ShowWindow( SW_HIDE) at the end of the initialization
process but it fails.
I override OnShowWindow
void CTrayDollarDlg::OnShowWindow(BOOL bShow, UINT nStatus)
{
static BOOL bFirst = TRUE;
if( bFirst && bShow ){
CDialog::ShowWindow( SW_HIDE );
bFirst = FALSE;
return;
Quote:
}
CDialog::OnShowWindow(bShow, nStatus);
Quote:
}
but unsuccessful. I did make sure to have the visible style off either.
I do appreciate if you have any hint about this.
Dalmer Azevedo