[Tooltip] 不要なLPCSTRキャストを無くした
@@ -219,7 +219,7 @@ | ||
219 | 219 | _snprintf_s(class_name, sizeof(class_name), _TRUNCATE, _T("%s_%p"), TipWinClassName, hInstance); |
220 | 220 | } |
221 | 221 | WNDCLASS twc = { 0 }; |
222 | - return (GetClassInfo(hInstance, (LPCSTR)class_name, &twc) > 0); | |
222 | + return (GetClassInfo(hInstance, class_name, &twc) > 0); | |
223 | 223 | } |
224 | 224 | |
225 | 225 | ATOM CTipWin::RegisterClass() |
@@ -234,13 +234,13 @@ | ||
234 | 234 | wc.hCursor = NULL; |
235 | 235 | wc.hbrBackground = NULL; |
236 | 236 | wc.lpszMenuName = NULL; |
237 | - wc.lpszClassName = (LPCSTR)class_name; | |
237 | + wc.lpszClassName = class_name; | |
238 | 238 | return ::RegisterClass(&wc); |
239 | 239 | } |
240 | 240 | |
241 | 241 | BOOL CTipWin::UnregisterClass() |
242 | 242 | { |
243 | - return ::UnregisterClass((LPCSTR)class_name, hInstance); | |
243 | + return ::UnregisterClass(class_name, hInstance); | |
244 | 244 | } |
245 | 245 | |
246 | 246 | VOID CTipWin::Create(HWND pHwnd) |
@@ -278,7 +278,7 @@ | ||
278 | 278 | */ |
279 | 279 | tWin->tip_wnd = |
280 | 280 | CreateWindowEx(WS_EX_TOOLWINDOW | WS_EX_TOPMOST, |
281 | - (LPCSTR)class_name, | |
281 | + class_name, | |
282 | 282 | NULL, WS_POPUP, |
283 | 283 | 0, 0, |
284 | 284 | 0, 0, |