Window focus



I have a form with no caption or border. Is there a way to know when the
form receives and loses focus.


.