you can use CreateCompatibleDC to create a DC in memory, and use CreateCompatibleBitmap to create a client for your memory dc, and draw what you need in this memory dc, and then use BitBlt to put...
I tested what you said. I have three dlg.
in a button of dlg1, I make dlg2 DoModel, code link:
void CDlgA::OnButton1()
{
// TODO: Add your control notification handler code here
CDlgB dlg_b;...