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

Cannot set fsStyle of TBBUTTONINFO struct #326

Closed
rmeshksar opened this issue Oct 5, 2022 · 0 comments
Closed

Cannot set fsStyle of TBBUTTONINFO struct #326

rmeshksar opened this issue Oct 5, 2022 · 0 comments

Comments

@rmeshksar
Copy link
Contributor

rmeshksar commented Oct 5, 2022

Hi,
I am not able to assign a value to fsStyle attribute of TBBUTTONINFO struct.

Is this due to this line?

public ToolbarStyle fsStyle { get => (ToolbarStyle)_fsStyle; set => _fsStyle = (byte)((ushort)fsStyle & 0x00FF); }

Shouldn't it be:

public ToolbarStyle fsStyle { get => (ToolbarStyle)_fsStyle; set => _fsStyle = (byte)((ushort)value & 0x00FF); }

Also, would you mind explaining this logic? What the reason of bitwise operation with 0x00FF?

@rmeshksar rmeshksar changed the title Cannot set fsStyle of TBB Cannot set fsStyle of TBBUTTONINFO struct Oct 5, 2022
@dahall dahall closed this as completed Oct 9, 2022
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