Skip to content

Added getNativeWindowHandle method - #4023

Merged
zcbenz merged 4 commits into
electron:masterfrom
omrilitov:master
Jan 11, 2016
Merged

zcbenz merged 4 commits into
electron:masterfrom
omrilitov:master

Conversation

@omrilitov

Copy link
Copy Markdown
Contributor

As discussed here #3219
Returns the native OS window handle in a buffer.
Not sure about the Mac implementation, if someone could double-check me.

Comment thread docs/api/browser-window.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you document what exactly this returns on every OS, and how you would use it?

@omrilitov

Copy link
Copy Markdown
Contributor Author

Updated the docs.

zcbenz added a commit that referenced this pull request Jan 11, 2016
Added getNativeWindowHandle method
@zcbenz
zcbenz merged commit 54e1d7b into electron:master Jan 11, 2016
@zcbenz

zcbenz commented Jan 11, 2016

Copy link
Copy Markdown
Contributor

Thanks!

@LartSimZ

LartSimZ commented Feb 4, 2016

Copy link
Copy Markdown
Contributor

I think I have an issue with this method on Windows. I can't get back the original HWND of the Chromium window. Would it be an issue with the Node Buffer ? I saw that the buffer is create using node::Buffer::New which directly use given pointer. I would be better to use node::Buffer::Copy that is doing a copy of the given bytes to a new memory location. (See issue #4369)

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 this pull request may close these issues.

4 participants