Add a WindowProcedure cllabck.