Happens when your window's frame (ie, title bar and borders, as opposed to the inner area) need to be redrawn. Typically, you would use this to draw your own customized frame.
Args
ARG(1) is a handle to an update region, which will need to be passed to other operating system functions you may call.
See also PAINT.