These metrics can change when the DPI of a Window changes, so we can not keep a static reference. According to documentation, the second parameter (uiParam) should be set to the size of the NONCLIENTMETRICS object.