请教:
是这样的,我创建了一个 win32 application 工程,
现在我一个位图,我想把这个位图画到 (30,40) ,
各位大哥用 win api 函数怎么实现?
谢谢!

解决方案 »

  1.   

    cdc* pdc->StretchBlt(                   ,SRCCOPY)
      

  2.   

    BOOL BitBlt(
      HDC hdcDest, // handle to destination device context
      int nXDest,  // x-coordinate of destination rectangle's upper-left <------------30
                   // corner
      int nYDest,  // y-coordinate of destination rectangle's upper-left <------------40
                   // corner
      int nWidth,  // width of destination rectangle
      int nHeight, // height of destination rectangle
      HDC hdcSrc,  // handle to source device context
      int nXSrc,   // x-coordinate of source rectangle's upper-left 
                   // corner
      int nYSrc,   // y-coordinate of source rectangle's upper-left 
                   // corner
      DWORD dwRop  // raster operation code
    );
      

  3.   

    dc.BitBlt(30,40,rect.Width(),rect.Height(),&cdc,0,0,SRCCOPY);