Posts: 1,058
Threads: 367
Joined: Oct 2007
I wonder whether there exists a QM function to dynamically change at run-time the icon of a pushbutton on the quick launch bar. I understand this can be done using QM-Editor "Shortcut" create on quick launch bar. Many thanks in advance.
Posts: 1,058
Threads: 367
Joined: Oct 2007
This is my solution. It works. Any comments are mostly welcome.
Function
tempf11
str shcut="$appdata$\Microsoft\Internet Explorer\Quick Launch\tempf01.lnk"
SHORTCUTINFO sio
int i=GetShortcutInfoEx(shcut &sio)
sio.iconfile="$My QM$\icons\lykaio.ico"
CreateShortcutEx(shcut sio)
Posts: 1,058
Threads: 367
Joined: Oct 2007
Better solution :
Update .lnk icon
Macro
ReplaceQLShcutIcon
str shcut="$appdata$\Microsoft\Internet Explorer\Quick Launch\tempf01.lnk"
ChangeShortcutIcon shcut "$My QM$\icons\lykaio.ico"