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

Problems with tray icon data types #1767

Closed
Enyium opened this issue Dec 17, 2023 · 1 comment · Fixed by #1768
Closed

Problems with tray icon data types #1767

Enyium opened this issue Dec 17, 2023 · 1 comment · Fixed by #1768
Assignees

Comments

@Enyium
Copy link

Enyium commented Dec 17, 2023

I'm getting the error:

binary assignment operation `|=` cannot be applied to type `NOTIFY_ICON_STATE`

It's necessary for the dwState member of NOTIFYICONDATAW, though, and many other 1-tuple structs already allow bitwise OR. Bitwise AND and NOT are also needed for removal of bits.


Also, dwStateMask in NOTIFY_ICON_STATE should be of the same type as dwState. Officially, they're both DWORDs. In the windows crate, dwState is NOTIFY_ICON_STATE and dwStateMask is u32.

@Enyium
Copy link
Author

Enyium commented Dec 18, 2023

It's the same with another type:

binary assignment operation `|=` cannot be applied to type `NOTIFY_ICON_INFOTIP_FLAGS`
cannot apply unary operator `!` to type `NOTIFY_ICON_INFOTIP_FLAGS`

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

Successfully merging a pull request may close this issue.

2 participants