ITADN

Close Win32 Window Properly in WGL Example

#504Pull Requestcarsonalh 创建于 2025-01-25
C
carsonalhcommented
The created window in this example would not close when the 'x' button was pressed. Fixed the handling of WM_CLOSE and WM_QUIT to be DestroyWindow(hWnd) instead of PostQuitMessage(0). Source: https://learn.microsoft.com/en-us/windows/win32/learnwin32/closing-the-window .
合并状态:未合并 关闭于 2025-01-25 1 条评论