Revision: 8276 https://osdn.net/projects/ttssh2/scm/svn/commits/8276 Author: yasuhide Date: 2019-10-08 22:42:11 +0900 (Tue, 08 Oct 2019) Log Message: ----------- [Tooltip] 不要なLPCSTRキャストを無くした Modified Paths: -------------- branches/tootip_classify/teraterm/common/tipwin.cpp -------------- next part -------------- Modified: branches/tootip_classify/teraterm/common/tipwin.cpp =================================================================== --- branches/tootip_classify/teraterm/common/tipwin.cpp 2019-10-08 13:42:10 UTC (rev 8275) +++ branches/tootip_classify/teraterm/common/tipwin.cpp 2019-10-08 13:42:11 UTC (rev 8276) @@ -219,7 +219,7 @@ _snprintf_s(class_name, sizeof(class_name), _TRUNCATE, _T("%s_%p"), TipWinClassName, hInstance); } WNDCLASS twc = { 0 }; - return (GetClassInfo(hInstance, (LPCSTR)class_name, &twc) > 0); + return (GetClassInfo(hInstance, class_name, &twc) > 0); } ATOM CTipWin::RegisterClass() @@ -234,13 +234,13 @@ wc.hCursor = NULL; wc.hbrBackground = NULL; wc.lpszMenuName = NULL; - wc.lpszClassName = (LPCSTR)class_name; + wc.lpszClassName = class_name; return ::RegisterClass(&wc); } BOOL CTipWin::UnregisterClass() { - return ::UnregisterClass((LPCSTR)class_name, hInstance); + return ::UnregisterClass(class_name, hInstance); } VOID CTipWin::Create(HWND pHwnd) @@ -278,7 +278,7 @@ */ tWin->tip_wnd = CreateWindowEx(WS_EX_TOOLWINDOW | WS_EX_TOPMOST, - (LPCSTR)class_name, + class_name, NULL, WS_POPUP, 0, 0, 0, 0,