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