Beispiel #1
0
 public ExFont(ref WinAPI.LogFont lpLogFont)
 {
     m_hFont = ExAPI._font_createfromlogfont(ref lpLogFont);
     if (m_hFont == IntPtr.Zero)
     {
         throw new ExException(ExAPI.Ex_GetLastError(), "Create Font faild.");
     }
 }
Beispiel #2
0
 public ExFont(ref WinAPI.LogFont lpLogFont)
 {
     m_hFont = (IntPtr)ExAPI._font_createfromlogfont(ref lpLogFont);
 }