I'm writing a new component using c++ builder.It's a special kind of button.This button should satisfy two requirements.
1-When the mouse cursor passes over this button(without clicking),its caption color should change to a new color(for example from black to red).I've succeeded in satisfying this requirement.
2-When the mouse cursor goes away from this button,its caption should retrieve its old color(black for example).I can't accomplish this task.
I've searched in windows messaging system for a message which is sent when the mouse cursor leaves a control's area.
Please,inform me with any material that may help me.