Shoutbox

Icon Hooking? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! General (/forumdisplay.php?fid=23)
+----- Thread: Icon Hooking? (/showthread.php?tid=63577)

Icon Hooking? by eth0 on 07-19-2006 at 12:56 AM

Lately I've seen it in a few plug-ins, and in MPL, add their own icons to the main-window in WLM... Does anyone know how to go about doing it? Anyone have any sample source [C# pref.]? Check the attachment to see what I mean...

Thanks.


RE: Icon Hooking? by RaceProUK on 07-19-2006 at 08:56 AM

One possible way of doing this is an API hook on the resource loading function LoadResource(), which IIRC returns a handle to a resource. It's not inconceivable to load the original UIFILE, copy it, add the icons, and return the new version as the resource.