做过打印的请进
苏端 2002-05-21 09:53:49 //取打印纸张高度和宽度
int nPageHeight, nPageWidth;
nPageHeight = pDC- >GetDeviceCaps(VERTRES);
nPageWidth = pDC- >GetDeviceCaps(HORZRES);
TEXTMETRIC TextM;
pDC- >GetTextMetrics(&TextM);
//字体高度
m_LineHeight = (unsigned short)TextM.tmHeight;
//字体平均宽度
m_CharWidth=(unsigned short)TextM.tmAveCharWidth;
为何nPageHeight/ m_LineHeight得到一页打印行数不正确?
在什么情况下不正确呢?