style选中Real size Image了?

解决方案 »

  1.   

    anywn_cwh(我有个问题) :选不选中都一样
      

  2.   

    CBitmap m_bmp;
    m_bmp.LoadBitmap(IDB_YOURBMP);CRect rect;
    GetClientRect(&rect);CBrush m_brush(&m_bmp);pDC->FillRect(&rect,&m_brush);return FALSE;
      

  3.   

    用StretchBlt( int x, int y, int nWidth, int nHeight, CDC* pSrcDC, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, DWORD dwRop );
    这个函数就可以了,我已实现。
    x,y为目的的逻辑坐标
    nWidth,nHeight为目的图的宽和高
    pSrcDC为标识位图被拷贝时所在的设备环境的CDC对像指针
    xSrc,ySrc,设定源位图的逻辑坐标
    nSrcWidth,nSrcHeight为位图的宽和高
    dwRop设定要执行的三元光珊操作