MFC Dialog Application disappears from alt-tab when displaying modal dialog  
Author Message
John Belli





PostPosted: Visual C++ Language, MFC Dialog Application disappears from alt-tab when displaying modal dialog Top

I have an MFC DIalog app. When it is displaying a modal dialog, the application does not appear on the alt-tab list unless the dialog style WS_EX_APPWINDOW is set on the modal dialog. Is there a way to get the application to stay on the alt-tab list without cluttering up the taskbar with a bunch of extra buttons


Visual C++5  
 
 
John Belli





PostPosted: Visual C++ Language, MFC Dialog Application disappears from alt-tab when displaying modal dialog Top

Sorry, a bit more detail.

The app can display a second modeless dialog, which I have set as an application window (so, 2 buttons on the task bar, and 2 entries in alt-tab). If the main application displays a modal dialog, then it will disappear from alt-tab as soon as I switch away from it, but the 2nd dialog remains. If the 2nd dialog displays a modal dialog, both will disappear from alt-tab immediately.

 
 
Bite Qiu - MSFT





PostPosted: Visual C++ Language, MFC Dialog Application disappears from alt-tab when displaying modal dialog Top

Hello

Re: MFC Dialog Application disappears from alt-tab when displaying modal dialog

Sorry that I didn't find your post earlier, such questions are outside the scope of this forum, a more appropriate place for your question is probably the MFC newsgroup:http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vc.mfc&lang=en&cr=US

OTP

Thanks

Bite



 
 
Simple Samples





PostPosted: Visual C++ Language, MFC Dialog Application disappears from alt-tab when displaying modal dialog Top

As Bite Qiu indicates, it is better to ask in one of the relevant newsgroups. This question could be asked in a MFC newsgroup but this particular question might also be appropriate in a Platform SDK newsgroup. Usually, for MFC programs, a MFC newsgroup is best. That however is your descion and not the main thing I wanted to say.

The Taskbar is documented quite well in The Taskbar and that should help you. In particular, look at "Managing Taskbar Buttons".