Thanks for your time, effort and help over the years Andreas. Wishing you all the best for a spicy future!
Apologies, thought I had left a response but I didn't hit submit!!
Thanks fwilleke80, I was hoping to avoid writing my own, but I might have to.
Hi r_gigante, it's a doc in memory (not a clone, but in memory none-the-less) and can't be in the active viewport. It's rendered to bitmap, sometimes very frequently. So I can't be switching to it in the viewport for one command on each frame. Is there no way to piggyback off the underlying CallCommand() functions for this? No messages I could send to try and invoke it?
Do the GeUserArea sections display anything? Or are they just spacers?
A mock-up picture might help others to visualise.
How about a 'global' drag and drop function? So, make separate iCustomGui/GeUserAreas for each section. Then just point each of these to the same function held in the parent dialog? That way you only have to write the main drag/catch routine once, in the parent dialog.
Just a thought.
I'm not sure on ScaleBicubic(), but I noticed in your commented line:
//bitmap->ScaleIt(scaledBitmap, defaultBrightness, true, false);
That last 'false' flag, try changing that to true. If you're scaling in a non-proportional way that should be true (might fix your non 'squeeze' issue).