Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support set background color for View #758

Open
jctaoo opened this issue Sep 12, 2023 · 1 comment
Open

Support set background color for View #758

jctaoo opened this issue Sep 12, 2023 · 1 comment

Comments

@jctaoo
Copy link

jctaoo commented Sep 12, 2023

view.backgroundColor = xx is not work currently

@compnerd
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants