Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.5 KiB

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1995 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10. // Inlines for AFXDLGS2.H
  11. #ifdef _AFXDLGS2_INLINE
  12. _AFXDLGS2_INLINE CString CFontDialog2::GetFaceName() const
  13. { return (LPCTSTR)m_cf.lpLogFont->lfFaceName; }
  14. _AFXDLGS2_INLINE CString CFontDialog2::GetStyleName() const
  15. { return m_cf.lpszStyle; }
  16. _AFXDLGS2_INLINE int CFontDialog2::GetSize() const
  17. { return m_cf.iPointSize; }
  18. _AFXDLGS2_INLINE int CFontDialog2::GetWeight() const
  19. { return (int)m_cf.lpLogFont->lfWeight; }
  20. _AFXDLGS2_INLINE BOOL CFontDialog2::IsItalic() const
  21. { return m_cf.lpLogFont->lfItalic ? TRUE : FALSE; }
  22. _AFXDLGS2_INLINE BOOL CFontDialog2::IsStrikeOut() const
  23. { return m_cf.lpLogFont->lfStrikeOut ? TRUE : FALSE; }
  24. _AFXDLGS2_INLINE BOOL CFontDialog2::IsBold() const
  25. { return m_cf.lpLogFont->lfWeight == FW_BOLD ? TRUE : FALSE; }
  26. _AFXDLGS2_INLINE BOOL CFontDialog2::IsUnderline() const
  27. { return m_cf.lpLogFont->lfUnderline ? TRUE : FALSE; }
  28. _AFXDLGS2_INLINE COLORREF CFontDialog2::GetColor() const
  29. { return m_cf.rgbColors; }
  30. /////////////////////////////////////////////////////////////////////////////
  31. #endif //_AFXDLGS2_INLINE