Graphics

Graphicsで指定のウィンドウのグラフィックス処理が出来る。

Graphics::Graphics(IN HWND,IN BOOL) (gdiplusgraphics.h) - Win32 apps | Microsoft Docs

今回は、ウィンドウハンドルを渡すバージョンのコンストラクタを使う。

BeginPaintが不要になる。

あんなんでも表示出来てしまう。
あんなんでも表示出来てしまう。

あんなんでも表示出来てしまう。

Sample/gdiplus/Graphics/Graphics/src/Graphics at master · bg1bgst333/Sample · GitHub