Get a literal screenshot of current plugin GUI

Hello,
I was wondering if there is a way to get current view into any kind of container, like a CBitmap or anything that basically encapsulates pixels.

Has anyone ever tried that? Any ideas?

Thanks

You mean something like this: vstgui/vst3editor.cpp at develop · steinbergmedia/vstgui · GitHub

I did not know about that. I will take a look into that. Thanks!