I have a dialog-only ATL app, that is, it is a CAtlExeModuleT - derived app that opens a modal dialog from Run() and exits when the dialog closes. When I alt+tab through running applications, the icon for app is null. How can I fix this? The app has no main window, only the dialog. Where does the shell get that icon? RDeW
>I have a dialog-only ATL app, that is, it is a CAtlExeModuleT - derived app >that opens a modal dialog from Run() and exits when the dialog closes. > >When I alt+tab through running applications, the icon for app is null. How >can I fix this? The app has no main window, only the dialog. Where does the >shell get that icon? Try using WM_SETICON to assign an icon (large & small) to the dialog. Dave -- MVP VC++ FAQ: http://www.mvps.org/vcfaq