LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: [Solved] How to get Window handle from the window LWJGL creates?  (Read 166 times)

QuorumAccessibility

  • Newbie
  • *
  • Offline Offline
  • Posts: 2

Can someone tell me where or how LWJGL creates the window handle for the main window on Windows? From what I can tell from the Hello World program on the Get Started page, GLFW is responsible for creating the window and that is passed around in Java to do things. However, I need to get access to the HWND down in C so that I can hook in COM interface code. I imagine at some point GLFW has to create the window through Windows API but from just looking through the source code its not clear to me.
Logged

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Online Online
  • Posts: 1907
Re: How to get Window handle from the window LWJGL creates?
« Reply #1 on: September 21, 2017, 06:34:29 »

Logged

QuorumAccessibility

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
Re: How to get Window handle from the window LWJGL creates?
« Reply #2 on: September 21, 2017, 17:10:19 »

This is exactly what I was looking for. Thanks!
Logged