Ejemplo n.º 1
0
        public static int GetObject(HandleRef hFont, IntNativeMethods.LOGFONT lp)
        {
            int retVal = IntGetObject(hFont, System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntNativeMethods.LOGFONT)), lp);

            DbgUtil.AssertWin32(retVal != 0, "GetObject(hObj=[0x{0:X8}], [LOGFONT]) failed.", hFont.Handle);
            return(retVal);
        }
Ejemplo n.º 2
0
 public LOGFONT(IntNativeMethods.LOGFONT lf)
 {
     this.lfHeight         = lf.lfHeight;
     this.lfWidth          = lf.lfWidth;
     this.lfEscapement     = lf.lfEscapement;
     this.lfOrientation    = lf.lfOrientation;
     this.lfWeight         = lf.lfWeight;
     this.lfItalic         = lf.lfItalic;
     this.lfUnderline      = lf.lfUnderline;
     this.lfStrikeOut      = lf.lfStrikeOut;
     this.lfCharSet        = lf.lfCharSet;
     this.lfOutPrecision   = lf.lfOutPrecision;
     this.lfClipPrecision  = lf.lfClipPrecision;
     this.lfQuality        = lf.lfQuality;
     this.lfPitchAndFamily = lf.lfPitchAndFamily;
     this.lfFaceName       = lf.lfFaceName;
 }
Ejemplo n.º 3
0
 public static extern int IntGetObject(HandleRef hFont, int nSize, [In, Out] IntNativeMethods.LOGFONT lf);
 public static int GetObject(HandleRef hFont, IntNativeMethods.LOGFONT lp)
 {
     return(IntGetObject(hFont, Marshal.SizeOf(typeof(IntNativeMethods.LOGFONT)), lp));
 }