I have an originally modal dialog I am trying to display modeless like this:
CCatViewDlg CatViewDlg;
CatViewDlg.Create(IDD_CATVIEW);
CatViewDlg.ShowWindow(SW_SHOW);

The dialog box appears on the screen, processes OnInitDialog(), the controls are visible briefly, then the dialog shuts down. Has anybody else encountered this problem and found a solution?

Kevin