Replacing CaptionHeight with TitleBarHeight