- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 如何让DirectSound支持3D立体声效果
1. 创建DirectSound8对象CComPtr dsound; HRESULT hres = DirectSoundCreate8(NULL, &dsound, NULL); 2. 创建含有DSBCAPS_CTRL3D能力的DirectSoundBuffer对象CComPtr dsbuffer; DSBUFFERDESC dsbd = {sizeof(dsbd)}; ... // 正确初始化SoundBuffer的Describle成员 dsbd.dwFlags |= DSBCAPS_CT
2010-06-28 15:38:00 2212
原创 使用GDI+来缩放图片
前提:获得相应的图片资源在WM_PAINT中获得窗口DC不要忘记使用完后释放CImage image(fileName); PAINTSTRUCT ps; HDC hdc = BeginPaint(hwndDlg, &ps); EndPaint(hwndDlg, &ps); 使用普通GDI来缩放图片的方式:image.StretchBlt(hdc, dstRect.left, dstRect.top, dstRect.Width(), dstRect.Height(), SRCCOPY); 使用GD
2010-06-24 16:06:00 8393 1
csharp.1.23.2-win32-x86_64.vsix
2021-01-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人