title: What is the best way to resize a Bitmap in Windows?
body: <p>So, I am working on a text editor. I use double buffering to paint on to the screen. So basically I have an offscreen bitmap, which I paint on, and then copy it to the screen. Now, when the window for the text editor resizes, I need to resize the offscreen bitmap as well. So what would be a good way to resize the bitmap? I was thinking to maybe delete the old object and create a new bitmap using <code>CreateCompatibleBitmap</code>, but I'm wondering if it's the correct way to do it.</p>
  
  <p>Language : C++ using Win32 API</p>