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

REQUEST: Windows native hwnd and events #119

Open
TheNoim opened this issue Jul 2, 2018 · 2 comments
Open

REQUEST: Windows native hwnd and events #119

TheNoim opened this issue Jul 2, 2018 · 2 comments

Comments

@TheNoim
Copy link

TheNoim commented Jul 2, 2018

Hello,

At the moment it seems like that it isn't possible to get the native hwnd from a window. It would be really nice to be able to do this.
As an example would be electron with this.
Also the hook methods would be extremely useful (this).
Thanks.

@TheNoim TheNoim changed the title Windows native hwnd and events FEATURE: Windows native hwnd and events Jul 2, 2018
@TheNoim TheNoim changed the title FEATURE: Windows native hwnd and events REQUEST: Windows native hwnd and events Jul 2, 2018
@mischnic
Copy link
Collaborator

mischnic commented Jul 6, 2018

it isn't possible to get the native hwnd from a window. It would be really nice to be able to do this.

What would you like to do with that handle? Using that handle in Javascript seems quite complex (requiring a native module) and platform dependent.

Also the hook methods would be extremely useful (this).

This only works for Windows, cross platform support is one of the main conditions for adding new features to libui itself.

@TheNoim
Copy link
Author

TheNoim commented Jul 20, 2018

If you do cross platform development you sometimes still need to use platform specific features. Some programs communicate over the windows messaging system.

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