我的窗口上有个picture控件,我要在这个控件之中显示图像,我用
CWnd* pWnd=GetDlgItem(IDC_PICTURE)
CDC* pDC=pWnd->GetDC()
我想知道我用pDC->GetDeviceCaps(LOGPIXELX)这个函数得到的是picture区域的象素个数,还是整个显示屏区域的象素个数
CWnd* pWnd=GetDlgItem(IDC_PICTURE)
CDC* pDC=pWnd->GetDC()
我想知道我用pDC->GetDeviceCaps(LOGPIXELX)这个函数得到的是picture区域的象素个数,还是整个显示屏区域的象素个数
LOGPIXELX
Number of pixels per logical inch along the screen width. In a system with multiple display monitors, this value is the same for all monitors.
沿着屏幕宽度,每个逻辑英寸的像素值数目。在多监视器系统中,对所有的监视器它的值相同。