swift-win32 icon indicating copy to clipboard operation
swift-win32 copied to clipboard

Support set background color for View

Open jctaoo opened this issue 2 years ago • 1 comments

view.backgroundColor = xx is not work currently

jctaoo avatar Sep 12 '23 16:09 jctaoo

Each view has a hWnd associated with it. It should be possible to create a new solid brush and set that via SetWindowLongPtrW. I don't remember if we have a lifetime wrapper for brushes, but that should be pretty easy to create via the generic ManagedHandle type. A patch for this would be a nice addition.

compnerd avatar Sep 13 '23 14:09 compnerd