GetTextExtentExPoint
-
while trying to use GetTextExtentExPoint function I get the following error during compilation: c:\Documents and Settings\Admin\My Documents\Visual Studio Projects\InfoBrowser\InfoBrowserView.cpp(387): error C2039: 'GetTextExtentExPointI' : is not a member of 'CDC' But according to the "manual" it should be a member... Just to be complete I am sending part of a code: void CInfoBrowserView::drw_DVDDetail(CDC* pDC) { pDC->TextOut(rect_DVDDetail.left,rect_DVDDetail.top,"Název:"); pDC->GetTextExtentExPointI();//the parameters are missing, but that shouldn't affect the error... } thanks for any elp
-
while trying to use GetTextExtentExPoint function I get the following error during compilation: c:\Documents and Settings\Admin\My Documents\Visual Studio Projects\InfoBrowser\InfoBrowserView.cpp(387): error C2039: 'GetTextExtentExPointI' : is not a member of 'CDC' But according to the "manual" it should be a member... Just to be complete I am sending part of a code: void CInfoBrowserView::drw_DVDDetail(CDC* pDC) { pDC->TextOut(rect_DVDDetail.left,rect_DVDDetail.top,"Název:"); pDC->GetTextExtentExPointI();//the parameters are missing, but that shouldn't affect the error... } thanks for any elp
webmaster1234463653 wrote: But according to the "manual" it should be a member which version of VC++ are you using? the MSDN for VS.Net lists it as a member of CDC, but the MSDN for VC6 doesn't have it. this might have been added in MFC 7 -c Cleek | Image Toolkits | Thumbnail maker
-
while trying to use GetTextExtentExPoint function I get the following error during compilation: c:\Documents and Settings\Admin\My Documents\Visual Studio Projects\InfoBrowser\InfoBrowserView.cpp(387): error C2039: 'GetTextExtentExPointI' : is not a member of 'CDC' But according to the "manual" it should be a member... Just to be complete I am sending part of a code: void CInfoBrowserView::drw_DVDDetail(CDC* pDC) { pDC->TextOut(rect_DVDDetail.left,rect_DVDDetail.top,"Název:"); pDC->GetTextExtentExPointI();//the parameters are missing, but that shouldn't affect the error... } thanks for any elp
Use the following instead of: BOOL GetTextExtentExPoint( HDC hdc, // handle to DC LPCTSTR lpszStr, // character string int cchString, // number of characters int nMaxExtent, // maximum width of formatted string LPINT lpnFit, // maximum number of characters LPINT alpDx, // array of partial string widths LPSIZE lpSize // string dimensions ); Jack --------------------------------------------------------------------------------- XD++ MFC/C++ Flow/Diagram Library -- http://www.ucancode.net