private void CreatePen()
 {
     if (this.width > 1)
     {
         this.style |= WindowsPenStyle.Geometric;
     }
     if (this.wndBrush == null)
     {
         this.nativeHandle = IntSafeNativeMethods.CreatePen((int)this.style, this.width, ColorTranslator.ToWin32(this.color));
     }
     else
     {
         IntNativeMethods.LOGBRUSH lplb = new IntNativeMethods.LOGBRUSH {
             lbColor = ColorTranslator.ToWin32(this.wndBrush.Color),
             lbStyle = 0,
             lbHatch = 0
         };
         this.nativeHandle = IntSafeNativeMethods.ExtCreatePen((int)this.style, this.width, lplb, 0, null);
     }
 }