|
EVC中可以用SHLoadImageFile这个函数吗?
[复制链接]
我看见网上有这样用的,可到我的程序提示我没定义SHLoadImageFile是怎么回事啊,开发工具EVC,系统WINCE
CPaintDC dc(this); // device context for painting
dc.SetBkMode( TRANSPARENT );
CBitmap mBitmap;
mBitmap.Attach( SHLoadImageFile( _T( "./player.jpg" ) ) );
BITMAP mInfo;
mBitmap.GetBitmap( &mInfo );
CDC mPicDC;
mPicDC.CreateCompatibleDC( &dc );
CBitmap* pOldBitmap = mPicDC.SelectObject( &mBitmap );
dc.BitBlt( 0, 0, mInfo.bmWidth, mInfo.bmHeight, &mPicDC, 0, 0, SRCCOPY );
mPicDC.SelectObject( pOldBitmap );
mBitmap.DeleteObject();
|
|