Can Alt-TAB taskbar icon be changed for a Bullen FormChanger?

B

baobob

I'll tell ya, Stephen Bullen has freed the slaves with his
CFormChanger UserForm booster.

Now, about the form's icon. His (amazingly simple) method behind
his .IconPath property:

<...>
hIcon = ExtractIcon(0, msIconPath, 0)
'Set the big (32x32) and small (16x16) icons
SendMessage mhWndForm, WM_SETICON, True, hIcon
SendMessage mhWndForm, WM_SETICON, False, hIcon

does change both the form's and the System Tray icon.

But the Alt-TAB task-switching bar icon remains the pesky Excel one. I
don't suppose you can change that too?

(BTW, its order seems to be the converse of what's desired. When you
launch your form (I use a keystroke to do it, e.g. Ctrl-Shift-F), it
puts itself BEFORE Excel in the bar's rotation. You must press *Shift-
Alt-TAB*, i.e. go backward, to retrieve it. To my mind, it ought to be
*ahead* of Excel, and reachable with Alt-TAB instead.)

Anyway, is my suspicion that the Alt-TAB icon isn't affected is that,
while FormChanger goes a long way toward giving you a fully-separate
Windows app, it stop short of that?

Stated another way, in a normal fully-functional Win app, do those two
SendMessage's suffice to change *all three* icons? Or is a third
SendMessage I don't know about required?

Thanks much.

***
 
Top