Skip to content

BrowserWindow.getNativeWindowHandle() doesn't give a valid HWND on Windows #4369

Closed

Description

@LartSimZ

Hi,
I'm using BrowserWindow.getNativeWindowHandle() API (introduced in #4023) as I need to reparent the Chromium window in our application. But it seems that the buffer returned does not contain any valid HWND (I checked with MS tool Spy++). I did a test using the same code than getNativeWindowHandle() and I found that using node::Buffer::New() is wrong as I could not get back the initial value. However, this is working when using node::Buffer::Copy(). I think the same change should be done in the ToBuffer() method used by getNativeWindowHandle()'s implementation. The NodeJS states that node::Buffer::Copy() is doing a copy of source data which is better in this case.

Activity

  1. LartSimZ commented on Feb 7, 2016

    @LartSimZ
    ContributorAuthor

    Proposed pull request #4398

  2. added a commit that references this issue on Feb 15, 2016
  3. zcbenz commented on Feb 15, 2016

    @zcbenz
    Contributor

    Fixed by #4398.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions