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.

67 lines
2.7 KiB

  1. // Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1993 Microsoft Corporation,
  3. // All rights reserved.
  4. // This source code is only intended as a supplement to the
  5. // Microsoft Foundation Classes Reference and Microsoft
  6. // QuickHelp and/or WinHelp documentation provided with the library.
  7. // See these sources for detailed information regarding the
  8. // Microsoft Foundation Classes product.
  9. // Inlines for AFXPEN.H
  10. #ifdef _AFXPEN_INLINE
  11. /////////////////////////////////////////////////////////////////////////////
  12. _AFXPEN_INLINE CHEdit::CHEdit()
  13. { }
  14. _AFXPEN_INLINE BOOL CHEdit::GetInflate(LPRECTOFS lpRectOfs)
  15. { return (BOOL)::SendMessage(m_hWnd, WM_HEDITCTL,
  16. HE_GETINFLATE, (LPARAM)lpRectOfs); }
  17. _AFXPEN_INLINE HPENDATA CHEdit::GetInkHandle()
  18. { return (HPENDATA)::SendMessage(m_hWnd, WM_HEDITCTL,
  19. HE_GETINKHANDLE, 0); }
  20. _AFXPEN_INLINE BOOL CHEdit::GetRC(LPRC lpRC)
  21. { return (BOOL)::SendMessage(m_hWnd, WM_HEDITCTL,
  22. HE_GETRC, (LPARAM)lpRC); }
  23. _AFXPEN_INLINE BOOL CHEdit::GetUnderline()
  24. { return (BOOL)::SendMessage(m_hWnd, WM_HEDITCTL,
  25. HE_GETUNDERLINE, 0); }
  26. _AFXPEN_INLINE BOOL CHEdit::SetInflate(LPRECTOFS lpRectOfs)
  27. { return (BOOL)::SendMessage(m_hWnd, WM_HEDITCTL,
  28. HE_SETINFLATE, (LPARAM)lpRectOfs); }
  29. _AFXPEN_INLINE BOOL CHEdit::SetInkMode(HPENDATA hPenDataInitial)
  30. { return (BOOL)::SendMessage(m_hWnd, WM_HEDITCTL,
  31. HE_SETINKMODE, MAKELONG(hPenDataInitial, 0)); }
  32. _AFXPEN_INLINE BOOL CHEdit::SetRC(LPRC lpRC)
  33. { return (BOOL)::SendMessage(m_hWnd, WM_HEDITCTL,
  34. HE_SETRC, (LPARAM)lpRC); }
  35. _AFXPEN_INLINE BOOL CHEdit::SetUnderline(BOOL bUnderline)
  36. { return (BOOL)::SendMessage(m_hWnd, WM_HEDITCTL,
  37. HE_SETUNDERLINE, MAKELONG(bUnderline, 0)); }
  38. _AFXPEN_INLINE BOOL CHEdit::StopInkMode(UINT hep)
  39. { return (BOOL)::SendMessage(m_hWnd, WM_HEDITCTL,
  40. HE_STOPINKMODE, MAKELONG(hep, 0)); }
  41. _AFXPEN_INLINE CBEdit::CBEdit()
  42. { }
  43. _AFXPEN_INLINE DWORD CBEdit::CharOffset(UINT nCharPosition)
  44. { return (DWORD)::SendMessage(m_hWnd, WM_HEDITCTL,
  45. HE_CHAROFFSET, MAKELONG(nCharPosition, 0)); }
  46. _AFXPEN_INLINE DWORD CBEdit::CharPosition(UINT nCharOffset)
  47. { return (DWORD)::SendMessage(m_hWnd, WM_HEDITCTL,
  48. HE_CHARPOSITION, MAKELONG(nCharOffset, 0)); }
  49. _AFXPEN_INLINE void CBEdit::GetBoxLayout(LPBOXLAYOUT lpBoxLayout)
  50. { ::SendMessage(m_hWnd, WM_HEDITCTL,
  51. HE_GETBOXLAYOUT, (LPARAM)lpBoxLayout); }
  52. _AFXPEN_INLINE void CBEdit::DefaultFont(BOOL bRepaint)
  53. { ::SendMessage(m_hWnd, WM_HEDITCTL,
  54. HE_DEFAULTFONT, MAKELONG(bRepaint, 0)); }
  55. _AFXPEN_INLINE BOOL CBEdit::SetBoxLayout(LPBOXLAYOUT lpBoxLayout)
  56. { return (BOOL)::SendMessage(m_hWnd, WM_HEDITCTL,
  57. HE_SETBOXLAYOUT, (LPARAM)lpBoxLayout); }
  58. //////////////////////////////////////////////////////////////////////////////
  59. #endif //_AFXPEN_INLINE