title: C++/WinAPI GDI+ double buffering
body: <p>Hello guys I have a problem with double buffering.
  I don't know why, but my text isn't drawing (without double buffering text is drawing).</p>
  
  <p>Here is code:</p>
  
  <pre><code>m_hDC = BeginPaint(m_hWnd, &amp;m_ps);
  
  m_graphics = new Graphics(m_hDC);
  memDC = CreateCompatibleDC(m_hDC);
  pMemGraphics = new Graphics(memDC);
  
  pMemGraphics-&gt;DrawString(L"Hello world!", -1, font, PointF(100, 100), &amp;brush);
  
  BitBlt(m_hDC, 0, 0, 500, 200, memDC, 0, 0, SRCCOPY);
  EndPaint(m_hWnd, &amp;m_ps);
  
  delete(pMemGraphics);
  delete(m_graphics);
  </code></pre>
  
  <p>Whats wrong?</p>