diff options
Diffstat (limited to 'Editor/GUI/ContainerWindow.cpp')
-rw-r--r-- | Editor/GUI/ContainerWindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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); } |