如
解决方案 »
- 关于view类从CScrollView的问题
- 窗口生成后运行问题
- 请问谁有《Windows 高级编程指南》Jeffrey Richter编著,有问题,高分送上。
- 能详细说明一下如何生成一个bmp文件?迫切需要!!!
- 请问谁会在桌面上创建个重新启动计算机的快捷方式?会的话请告诉我!
- 如何获取IWebBrowser2接口
- 各位大哥 江湖救急! 如何吧类打苞成SAFEARRAY (解决后 在开一贴送100分!!!)
- 高分求播放Realplay影视文件的控件。
- 高手,我怎么做到在开始时,有一个RadioButton被选中,属于那种默认的,不是通过鼠标去点中?
- Horzcat与vertcat函数
- 如何给ListView手动添加ID
- 求线程间通信范例(vc),急~~
The GetDeviceCaps function retrieves device-specific information for the specified device. int GetDeviceCaps(
HDC hdc, // handle to DC
int nIndex // index of capability
);width<0 时表示设备上的单位
Value Meaning
> 0 The font mapper transforms this value into device units and matches it against the cell height of the available fonts.
0 The font mapper uses a default height value when it searches for a match.
< 0 The font mapper transforms this value into device units and matches its absolute value against the character height of the available fonts.
CFont *curFont = pDC->GetCurrentFont();
curFont->GetLogFont( &curLogFont );
long NewFontWidth = curLogFont.lfWidth;//宽
long NewFontHeight = curLogFont.lfHeight;//高