An application draws a border around a region by calling the FrameRgn function and specifying the border width and brush pattern that the system uses when drawing the frame.