From 44d6c41e5e586572de08c72c358aed9100a30353 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 1 Nov 2021 12:10:29 +0800 Subject: *log --- Editor/GUI/ContainerWindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Editor/GUI/ContainerWindow.cpp') diff --git a/Editor/GUI/ContainerWindow.cpp b/Editor/GUI/ContainerWindow.cpp index 01bb1e9..d737838 100644 --- a/Editor/GUI/ContainerWindow.cpp +++ b/Editor/GUI/ContainerWindow.cpp @@ -24,7 +24,7 @@ LRESULT CALLBACK ContainerWindow::ContainerWndProc(HWND hWnd, UINT message, WPAR return DefWindowProcW(hWnd, message, wParam, lParam); } - //log_info("WndProc", "ContainerWindow::ContainerWndProc(), ContainerWindow name is " + self->GetName()); + //log_info_tag("WndProc", "ContainerWindow::ContainerWndProc(), ContainerWindow name is " + self->GetName()); switch (message) { @@ -412,16 +412,16 @@ void ContainerWindow::SetIcon(LPCSTR iconName) HICON hWindowIcon = (HICON )LoadImage(winutils::GetInstanceHandle(), iconName, IMAGE_ICON, 0, 0, LR_DEFAULTSIZE | LR_LOADFROMFILE); if (hWindowIcon == NULL) - log_error("icon error: " + to_string(GetLastError())); + log_error("icon error: %lu", GetLastError()); if (SendMessage(m_Window, WM_SETICON, ICON_BIG, (LPARAM)hWindowIcon) != WM_SETICON) - log_error("icon error: " + to_string(GetLastError())); + log_error("icon error: %lu", GetLastError()); if (SendMessage(m_Window, WM_SETICON, ICON_SMALL, (LPARAM)hWindowIcon) != WM_SETICON) - log_error("icon error: " + to_string(GetLastError())); + log_error("icon error: %lu", GetLastError()); } void ContainerWindow::Close() { - log_info("Close window " + m_Name); + log_info("Close window %s", m_Name); SendMessage(m_Window, WM_CLOSE, 0, 0); } -- cgit v1.1-26-g67d0