Пример #1
0
 private BrushHolder(BrushHandle handle)
 {
     _brush         = handle.HBRUSH;
     _shouldDispose = handle.OwnsHandle;
     if (!_shouldDispose)
     {
         GC.SuppressFinalize(this);
     }
 }
Пример #2
0
 public static extern bool FrameRgn(
     DeviceContext hdc,
     RegionHandle hrgn,
     BrushHandle hbr,
     int nWidth,
     int nHeight);
Пример #3
0
 public static extern bool FillRgn(
     DeviceContext hdc,
     RegionHandle hrgn,
     BrushHandle hbr);
Пример #4
0
 public static extern bool FrameRect(
     DeviceContext hDC,
     [In] ref RECT lprc,
     BrushHandle hbr);
Пример #5
0
 public bool Equals(BrushHandle other) => other.HBRUSH == HBRUSH;
Пример #6
0
 public static bool FrameRectangle(DeviceContext deviceContext, RECT rectangle, BrushHandle brush)
 {
     return(Imports.FrameRect(deviceContext, ref rectangle, brush));
 }