title: how do I do print preview in win32 c++?
body: <p>I have a drawing function that just takes an HDC.
  But I need to show an EXACT scaled version of what will print.</p>
  
  <p>So currently, I use
  CreateCompatibleDC() with a printer HDC and
  CreateCompatibleBitmap() with the printer's HDC.</p>
  
  <p>I figure this way the DC will have the printer's exact width and height.
  And when I select fonts into this HDC, the text will be scaled exactly as the printer would.</p>
  
  <p>Unfortunately, I can't to a StretchBlt() to copy this HDC's pixels to the control's HDC since they're of different HDC types I guess.</p>
  
  <p>If I create the "memory canvas" from a window HDC with same w,h as the printer's page,
  the fonts come out WAY teeny since they're scaled for the screen, not page...</p>
  
  <p>Should I CreateCompatibleDC() from the window's DC and
  CreateCompatibleBitmap() from the printer's DC or something??</p>
  
  <p>If somebody could explain the RIGHT way to do this.
  (And still have something that looks EXACTLY as it would on printer)...</p>
  
  <p>Well, I'd appreciate it !!</p>
  
  <p>...Steve</p>