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

Add a way to convert from HGDIOBJ to HBRUSH #1863

Open
wuweiran opened this issue Mar 1, 2024 · 2 comments
Open

Add a way to convert from HGDIOBJ to HBRUSH #1863

wuweiran opened this issue Mar 1, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@wuweiran
Copy link
Member

wuweiran commented Mar 1, 2024

Suggestion

GetStockObject is widely used in params that takes an HBRUSH. A better helper should be added to avoid things like HBRUSH(GetStockObject(WHITE_BRUSH).0).

@wuweiran wuweiran added the enhancement New feature or request label Mar 1, 2024
@kennykerr
Copy link
Contributor

kennykerr commented Mar 1, 2024

These conversions are derived from the Win32 metadata.

@kennykerr kennykerr transferred this issue from microsoft/windows-rs Mar 1, 2024
@wuweiran
Copy link
Member Author

wuweiran commented Mar 4, 2024

@kennykerr Now in Rust for windows we can only do like WS_TABSTOP | WS_VISIBLE | WS_CHILD | WINDOW_STYLE(BS_DEFPUSHBUTTON as u32). Is this example of the same reason?

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

No branches or pull requests

2 participants