win window util class - working message loop