public int AddRefHfont(HFONT hFont) { if (m_AddRefHfontFunc == null) { var fp = GetFunctionPointer(24); m_AddRefHfontFunc = (AddRefHfontFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(AddRefHfontFunc)); } return(m_AddRefHfontFunc(m_ptr, hFont)); }
public int ReleaseHfont(HFONT hFont) { if (m_ReleaseHfontFunc == null) { var fp = GetFunctionPointer(25); m_ReleaseHfontFunc = (ReleaseHfontFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(ReleaseHfontFunc)); } return(m_ReleaseHfontFunc(m_ptr, hFont)); }
public int get_hFont(ref HFONT phFont) { if (m_get_hFontFunc == null) { var fp = GetFunctionPointer(19); m_get_hFontFunc = (get_hFontFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(get_hFontFunc)); } return(m_get_hFontFunc(m_ptr, ref phFont)); }