WndProperty property = GetWindowProperty(hWnd, PROPERTY_ID); property.SetPropertyValue(newPropertyValue); property.RefreshDisplay();
SomePackage::WndProperty property = SomePackage::GetWindowProperty(hWnd, PROPERTY_ID); property.SetPropertyAppearance(newPropertyAppearance); property.RefreshDisplay();In this example, we are using the WndProperty class provided by a package library called SomePackage. We obtain a handle to the window property with the specified ID, set its appearance to a new property appearance using the SetPropertyAppearance method, and then refresh its display with the RefreshDisplay method.