Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. _AFXWIN_INLINE CSize CDC::
  2.  
  3. GetOutputTextExtent(LPCTSTR lpszString, int nCount) const
  4. {
  5. ASSERT(m_hDC != NULL);
  6. SIZE size;
  7. VERIFY(::GetTextExtentPoint32(m_hDC, lpszString, nCount, &size));
  8. return size;
  9. }
  10.  
  11. _AFXWIN_INLINE CSize CDC::GetOutputTextExtent(const CString& str) const
  12. {
  13. ASSERT(m_hDC != NULL);
  14. SIZE size;
  15. VERIFY(::GetTextExtentPoint32(m_hDC, str, (int)str.GetLength(), &size));
  16. return size;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement