I've so far found it impossible to get a dll to draw on a @picwin without taking over all the drawing (which means mIRC commands don't work).
However doing it in a dialog works fine (see dcx.dll image control).