Click to See Complete Forum and Search --> : How to display correct icon in ALT+TAB dialog


June 25th, 1999, 09:58 AM
Hi experts.
I'm working with modeless dialogs and i had set different icons for each dialog. My icons are correct shown in dialog system bar and in task bar but on ALT+TAB dialog (you know, dialog for switching windows) all dialogs have same icon, default application icon used on main window.
My code looks like this:

hIcon = ImageList_GetIcon(himlIcons, iIconPos, ILD_NORMAL);
::DestroyIcon(SetIcon(hIcon, TRUE)); //large icon
//...
hIcon = ImageList_GetIcon(himlIcons, iIconPos, ILD_NORMAL);
::DestroyIcon(SetIcon(hIcon, FALSE)); //small icon
Thanks,
Sasa