FrameRect function Null safety user32

int FrameRect (
  1. int hDC,
  2. Pointer<RECT> lprc,
  3. int hbr
)

The FrameRect function draws a border around the specified rectangle by using the specified brush. The width and height of the border are always one logical unit.

int FrameRect(
  HDC        hDC,
  const RECT *lprc,
  HBRUSH     hbr
);

Implementation

int FrameRect(int hDC, Pointer<RECT> lprc, int hbr) {
  final _FrameRect = _user32.lookupFunction<
      Int32 Function(IntPtr hDC, Pointer<RECT> lprc, IntPtr hbr),
      int Function(int hDC, Pointer<RECT> lprc, int hbr)>('FrameRect');
  return _FrameRect(hDC, lprc, hbr);
}