I've been trying to implement some other drawing routines to mIRC with a dll, For the life of me, I can't make any GDI+ updates to a window stay, or get saved with a /drawsave
Basically what I did is use $window(@window).hwnd to then enumerate child windows, which there is one, a static control which I assumed was the correct surface to draw to. Drawing commands work, I see my changes, but any action that constitutes a WM_PAINT to the @window loses my changes, and even if I don't move it or whatever, a /drawsave doesn't capture any of my dll draws to the window.
My guess is that mIRC uses that compatible bitmap from the static control to do all its drawing to, and then blits the bitmap to the static control to reflect the updates, and a WM_PAINT just re-paints the stored bitmap. A drawsave also just converts the bitmap to the specified file extension and writes it to file.
Anyways, more to the point, if my guess is correct, how would I find this bitmap so my dll can draw to it?