Has anyone tried using DirectDraw to paint on top of a JUCE application?

In other words, using standard JUCE controls for most of the GUI and then using DirectDraw for fast repainting of just part of the window?

Okay, it looks like this is actually doable. I have it running on a test application and the performance is very good.

The only downside is that DirectDraw wants to draw on top of everything, even if my window is in the background. Does anyone know how I can determine the currently visible region of my window? That way, I can clip myself.

Looks like I need to stop posting so quickly.

It turns out that if I just create a child window on my main window, I can do DirectDraw inside the child window and use regular JUCE for everything else.

It’s kind of a hassle, but the performance gains are significant.