ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can Alt-TAB taskbar icon be changed for a Bullen FormChanger? (https://www.excelbanter.com/excel-programming/415421-can-alt-tab-taskbar-icon-changed-bullen-formchanger.html)

[email protected]

Can Alt-TAB taskbar icon be changed for a Bullen FormChanger?
 
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.

***


All times are GMT +1. The time now is 10:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com