Random UIFILE trick - dfc dtb functions - 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: Skinning (/forumdisplay.php?fid=41) +----- Thread: Random UIFILE trick - dfc dtb functions (/showthread.php?tid=80254) Random UIFILE trick - dfc dtb functions by TheSteve on 12-20-2007 at 08:06 AM
So I was in a debugging session today, and I noticed a couple functions I hadn't seen before and could find online documentation for. code: Now if you try this dfc function you may notice that it draws really old looking controls. This is because this function draws the "Windows Classic" style controls. Ok so this is kind of pointless isn't it. This brings us to the dtb function. dtb stands for DrawThemeBackground. This function controls all of the painting for the Windows XP and Windows Vista themes support. So with this function you can get all of the Windows XP/Vista style controls. These controls will match the currently selected windows theme as long as you're not in Windows Classic mode. The function looks like this code: Because you need the header files in order to get the correct numbers, you will either need to download the Windows SDK (it's free) or ask one of your programmer buddies to send the header. If I get some time I'll put together a whole list of values and put it here. Note: In case you got the wrong idea, this cannot achieve glass in Windows Vista. EDIT: I found an online copy of TmSchema.h in the wine project. You can find it here: http://source.winehq.org/source/include/tmschema.h RE: Random UIFILE trick - dfc dtb functions by Patchou on 12-20-2007 at 05:50 PM
Thanks for the info . RE: Random UIFILE trick - dfc dtb functions by davidpolitis on 12-21-2007 at 01:06 AM A shame that MP!L cannot handle controls RE: Random UIFILE trick - dfc dtb functions by Patchou on 12-21-2007 at 05:21 AM what do you mean? RE: Random UIFILE trick - dfc dtb functions by davidpolitis on 12-21-2007 at 05:43 AM Well, say that you want to add your own menu, you have to edit an existing menu such as the background chooser and then get the button to just use a cmdid, so that backgrounds are still accessible, because messenger handles menus and drop downs. Hence new ones cannot be added. RE: Random UIFILE trick - dfc dtb functions by Patchou on 12-21-2007 at 05:46 AM oh I see. Well, that's definitively the kind of request I can accept. I'll keep that suggestion for the next updates (I wanted to do somethign for menus anyway). RE: Random UIFILE trick - dfc dtb functions by TheBlasphemer on 01-19-2009 at 12:16 PM
Quick addition to Steve's post: |