nohairleft
Programmer
I am running Visual C++ 6.0 MFC Document/View. MyCView class's OnDraw(pDC) function calls a myCDocument function pDoc->DisplayMyStuff(pDC) which defines a CRect called WaferRect and calls a function called DisplayMapSetup(pDC, WaferRect). The code snippet is shown below.
void CWaferMapDoc:isplayMapSetup(CDC* pDC, CRect WaferRect)
{
pDC->LPtoDP(&WaferRect);
int height = WaferRect.Height();
I have also tried this as pDC->LPtoDP(WaferRect) and with various mapping modes, but all I ever get are the logical units when I want the pixels. It's as though the LPtoDP() function is just a NULL function. Can anyone see what I am missing to get the LPtoDP() function to work properly and convert my units from logical to pixals.
void CWaferMapDoc:isplayMapSetup(CDC* pDC, CRect WaferRect)
{
pDC->LPtoDP(&WaferRect);
int height = WaferRect.Height();
I have also tried this as pDC->LPtoDP(WaferRect) and with various mapping modes, but all I ever get are the logical units when I want the pixels. It's as though the LPtoDP() function is just a NULL function. Can anyone see what I am missing to get the LPtoDP() function to work properly and convert my units from logical to pixals.