embed window(glfwCreateWindow) as child to C++ MFC parent form
问题 Please refer this link Embedding a GLFW window inside windows forms How can the same achieved by using VC++ to embed glfw window to Parent form? 回答1: Try this: Call glfwWindowHint() to set GLFW_DECORATED and GLFW_VISIBLE to false . Call glfwCreateWindow() . Call glfwGetWin32Window() to get the native handle of the OpenGL window. Call SetParent() to set your form as the new parent of the OpenGL window. Call GetWindowLong() / SetWindowLong() to remove the WS_POPUP and add the WS_CHILDWINDOW