help getting handle of an element. - 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: Scripting (/forumdisplay.php?fid=39) +----- Thread: help getting handle of an element. (/showthread.php?tid=64690) help getting handle of an element. by Ash_ on 08-09-2006 at 11:06 AM
ok, basically i have an element code: it has an image inside it, i wanna get the handle of it so i can use a GetDC() call on it (so i can write text on the image then save it and use as a DP). i found a GetControlHandle call im PlusWnd but i cant figure out how to get an image to load on a control (-dt- suggested using the Image control but i cant figure it out). anyone got any advice on how i should go about writing text onto an image and saving it (with the text on it still)? thanks in advance RE: help getting handle of an element. by RaceProUK on 08-09-2006 at 02:38 PM
Instead of using GetDC() (which implies GDI), try getting the data into a Bitmap object (which is in the far better GDI+). |