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

Tray visibility (windows) #38

Closed
wants to merge 2 commits into from
Closed

Tray visibility (windows) #38

wants to merge 2 commits into from

Conversation

tukanos
Copy link

@tukanos tukanos commented May 28, 2020

The dwState and dwStateMask are otherway around. It causes windows application using the tray (notification area) to be hidden every time it starts.

dwStateMask must be below dwState as it does the following:: "A value that specifies which bits of the dwState member are retrieved or modified." So we are changing the dwStateMask before we know the dwState value.

Based on the MSDN

dwState
Type: DWORD

Windows 2000 and later. The state of the icon. One or both of the following values:
NIS_HIDDEN (0x00000001)
0x00000001. The icon is hidden.
NIS_SHAREDICON (0x00000002)
0x00000002. The icon resource is shared between multiple icons.

dwStateMask
Type: DWORD

Windows 2000 and later. A value that specifies which bits of the dwState member are retrieved or modified. The possible values are the same as those for dwState. For example, setting this member to NIS_HIDDEN causes only the item's hidden state to be modified while the icon sharing bit is ignored regardless of its value.

The `dwState` and `dwStateMask` are otherway around.   It causes windows application using the tray (notification area) to be hidden every time it starts.

`dwStateMask` must be below `dwState` as to quote: "A value that specifies which bits of the dwState member are retrieved or modified."

Based on the MSDN

```
dwState
Type: DWORD

Windows 2000 and later. The state of the icon. One or both of the following values:
NIS_HIDDEN (0x00000001)
0x00000001. The icon is hidden.
NIS_SHAREDICON (0x00000002)
0x00000002. The icon resource is shared between multiple icons.

dwStateMask
Type: DWORD

Windows 2000 and later. A value that specifies which bits of the dwState member are retrieved or modified. The possible values are the same as those for dwState. For example, setting this member to NIS_HIDDEN causes only the item's hidden state to be modified while the icon sharing bit is ignored regardless of its value.
@tukanos
Copy link
Author

tukanos commented May 28, 2020

Reason: QT project is not using github to merge.

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

Successfully merging this pull request may close these issues.

1 participant