From e339061c40e82566640ba6f7c2ae9faf85cbbed2 Mon Sep 17 00:00:00 2001 From: dodo Date: Mon, 14 Oct 2019 13:18:16 +0800 Subject: [PATCH] PostMessage to SendMessage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用 PostMessage 无法在 windowProc 接收到消息, 导致无法在日志中输出打印信息. --- cocos/base/CCConsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/base/CCConsole.cpp b/cocos/base/CCConsole.cpp index f0ea6df109b1..c7d9794c4103 100644 --- a/cocos/base/CCConsole.cpp +++ b/cocos/base/CCConsole.cpp @@ -114,7 +114,7 @@ namespace { if (Director::getInstance()->getOpenGLView()) { HWND hwnd = Director::getInstance()->getOpenGLView()->getWin32Window(); - PostMessage(hwnd, + SendMessage(hwnd, WM_COPYDATA, (WPARAM)(HWND)hwnd, (LPARAM)(LPVOID)&myCDS);