自定义了一个对话框程序,中间留出一显示视频的区域,可是区域太小,只能显示一部分视频,请教一下如何在有限的区域中将全部视频都显示出来.也就是显示的按比例缩小???
解决方案 »
- 下面代码中的 1,000,000,009 是神马含义啊 研究10天了 求帮我看看
- MFC下如何实现类之间的数据传递
- 我的一个工程中目录下*.dsw *.dsp *.ncb *.opt *.plg 这5个文件全部多出来了一个。不明白。请赐教
- 如何编程设置每次打开浏览器都比较新版本
- 帮忙说明vc自带工具的作用或提供相关资料或连接
- 哪有类似QQ的界面控件下载?
- 招聘VC程序员
- 需要一个使用CRecordSet,CDataBase的例程
- 请教 模板 的成员变量定义的一个简单问题
- 我的程序编译后,执行报非法操作!!!!!
- 怎么把\变成/呢??
- 一个代理服务器在本机,当代理服务器获得网页后,如何通知客户进行显示?
The StretchDIBits function copies the color data for a rectangle of pixels in a device-independent bitmap (DIB) to the specified destination rectangle. If the destination rectangle is larger than the source rectangle, this function stretches the rows and columns of color data to fit the destination rectangle. If the destination rectangle is smaller than the source rectangle, this function compresses the rows and columns by using the specified raster operation. int StretchDIBits(
HDC hdc, // handle to device context
int XDest, // x-coordinate of upper-left corner of dest. rectangle
int YDest, // y-coordinate of upper-left corner of dest. rectangle
int nDestWidth, // width of destination rectangle
int nDestHeight, // height of destination rectangle
int XSrc, // x-coordinate of upper-left corner of source rectangle
int YSrc, // y-coordinate of upper-left corner of source rectangle
int nSrcWidth, // width of source rectangle
int nSrcHeight, // height of source rectangle
CONST VOID *lpBits, // address of bitmap bits
CONST BITMAPINFO *lpBitsInfo, // address of bitmap data
UINT iUsage, // usage flags
DWORD dwRop // raster operation code
);