mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
V3.6.0 exit (#11856)
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "platform/win32/modules/SystemWindow.h"
|
||||
#include <Windows.h>
|
||||
#include <functional>
|
||||
#include "base/Log.h"
|
||||
#include "bindings/event/EventDispatcher.h"
|
||||
@@ -68,7 +69,12 @@ bool SystemWindow::createWindow(const char *title,
|
||||
_height = h;
|
||||
return true;
|
||||
}
|
||||
|
||||
void SystemWindow::closeWindow() {
|
||||
HWND windowHandle = reinterpret_cast<HWND>(getWindowHandler());
|
||||
if (windowHandle != 0) {
|
||||
::SendMessageA(windowHandle, WM_CLOSE, 0, 0);
|
||||
}
|
||||
}
|
||||
uintptr_t SystemWindow::getWindowHandler() const {
|
||||
return _sdl->getWindowHandler();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user