Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MFC で手の骨格を描画したい、カメラから手と指の座標データを取得し、MFC を使用して子ウィンドウの画面に表示したい (OpenGL でこれを行う方法は知っているが、 MFC)
誰かが私を案内してくれますか?
CStatic や CDialog など、必要な子ウィンドウの種類からクラスを派生させます。WM_PAINT のメッセージ ハンドラーを追加します。OnPaint メッセージ ハンドラーは、次のように開始する必要があります。
void CGraph::OnPaint() { CPaintDC dc(this); // Use dc.FillSolidRect() and other DC functions to draw }
描画したい点の配列がある場合、 dc.Polyline(...) は点を接続します。