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

trackPopupMenuEx, trackPopupMenu #21

Open
willy-s opened this issue May 22, 2014 · 0 comments
Open

trackPopupMenuEx, trackPopupMenu #21

willy-s opened this issue May 22, 2014 · 0 comments

Comments

@willy-s
Copy link

willy-s commented May 22, 2014

I get unsafe reentries when trying to use either trackPopupMenuEx or trackPopupMenu. They are fixed when I use a safe imports instead.
Also the Microsoft documentation calls the return value of the API functions a BOOL, but the value is actually needed for identifying which option was clicked when the TPM_RETURNCMD flag is set.
I think the return value should be IO (Maybe MenuID). If they get back a zero they should fail like now, if they get back a positive value but the flag wasn't set they should return Nothing and if the flag was set they should return Just MenuID.

Should I send a pull request?

bgamari pushed a commit to bgamari/win32 that referenced this issue Sep 10, 2020
Fixes haskell#21, which noted that the `LICENSE` file was inconsistent with
`License: BSD3` in the .cabal` file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants