I'm fighting it
I want to draw a Bitmap in PluginWindowWin (Firebreath) using GDI +; for this, I have a timer simulating a wm_paint message, and this code inside:
using namespace Gdiplus; Graphics graphics(hwnd); graphics.DrawImage(image, 0, 0, 400, 400);
image is Gdiplus :: Image , it works fine, BUT if I create 2 instances of the plugin (two different HWNDs), it will ONLY draw in one of them.
Is this the expected behavior ?, I mean that GDI + will draw in only one context created from HWND?
Thanks!
source share