Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. GetTextExtentExPoint

GetTextExtentExPoint

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiohelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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

    C U 2 Replies Last reply
    0
    • L Lost User

      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

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • L Lost User

        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

        U Offline
        U Offline
        ucc801
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups