Robert #1 but I couldn't figure out how to get it to refresh You need to call SetWindowPos subsequently with the SWP_FRAMECHANGED flag.