Revision: 8442 https://osdn.net/projects/ttssh2/scm/svn/commits/8442 Author: zmatsuo Date: 2019-12-14 00:13:01 +0900 (Sat, 14 Dec 2019) Log Message: ----------- DWORDとLONG_PTR型のキャストで警告が出ないようにした Modified Paths: -------------- branches/unicode_buf/teraterm/teraterm/vtwin.cpp -------------- next part -------------- Modified: branches/unicode_buf/teraterm/teraterm/vtwin.cpp =================================================================== --- branches/unicode_buf/teraterm/teraterm/vtwin.cpp 2019-12-13 15:12:51 UTC (rev 8441) +++ branches/unicode_buf/teraterm/teraterm/vtwin.cpp 2019-12-13 15:13:01 UTC (rev 8442) @@ -544,9 +544,6 @@ WNDCLASS wc; RECT rect; DWORD Style; -#ifdef ALPHABLEND_TYPE2 - DWORD ExStyle; -#endif char *Param; int CmdShow; #ifdef SHARED_KEYMAP @@ -739,7 +736,7 @@ #ifdef ALPHABLEND_TYPE2 //<!--by AKASI if(BGNoFrame && ts.HideTitle > 0) { - ExStyle = ::GetWindowLongPtr(HVTWin,GWL_EXSTYLE); + DWORD ExStyle = (DWORD)::GetWindowLongPtr(HVTWin,GWL_EXSTYLE); ExStyle &= ~WS_EX_CLIENTEDGE; ::SetWindowLongPtr(HVTWin,GWL_EXSTYLE,ExStyle); } @@ -3433,8 +3430,8 @@ DWORD Style,ExStyle; HMENU SysMenu; - Style = ::GetWindowLongPtr (HVTWin, GWL_STYLE); - ExStyle = ::GetWindowLongPtr (HVTWin, GWL_EXSTYLE); + Style = (DWORD)::GetWindowLongPtr (HVTWin, GWL_STYLE); + ExStyle = (DWORD)::GetWindowLongPtr (HVTWin, GWL_EXSTYLE); TBar = ((Style & WS_SYSMENU)!=0); if (TBar == (ts.HideTitle==0)) { return 0; @@ -6494,8 +6491,8 @@ int NewWindowWidth; int NewWindowHeight; if (pAdjustWindowRectExForDpi != NULL || pAdjustWindowRectEx != NULL) { - const LONG_PTR Style = ::GetWindowLongPtr(m_hWnd, GWL_STYLE); - const LONG_PTR ExStyle = ::GetWindowLongPtr(m_hWnd, GWL_EXSTYLE); + const DWORD Style = (DWORD)::GetWindowLongPtr(m_hWnd, GWL_STYLE); + const DWORD ExStyle = (DWORD)::GetWindowLongPtr(m_hWnd, GWL_EXSTYLE); const BOOL bMenu = (ts.PopupMenu != 0) ? FALSE : TRUE; RECT Rect = {0, 0, ScreenWidth, ScreenHeight}; if (pAdjustWindowRectExForDpi != NULL) {