From 9e1a485c4634c22e0786817c7e2faad2a57e94f0 Mon Sep 17 00:00:00 2001 From: Erwan Tulou Date: Fri, 29 Jan 2010 22:31:56 +0100 Subject: [PATCH] skins2(Win32): GetWindowLongPtr everywhere --- modules/gui/skins2/win32/win32_factory.cpp | 2 +- modules/gui/skins2/win32/win32_window.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/gui/skins2/win32/win32_factory.cpp b/modules/gui/skins2/win32/win32_factory.cpp index e8bf387f02..812beda3d4 100644 --- a/modules/gui/skins2/win32/win32_factory.cpp +++ b/modules/gui/skins2/win32/win32_factory.cpp @@ -190,7 +190,7 @@ bool Win32Factory::init() // We do it this way otherwise CreateWindowEx will fail // if WS_EX_LAYERED is not supported SetWindowLongPtr( m_hParentWindow, GWL_EXSTYLE, - GetWindowLong( m_hParentWindow, GWL_EXSTYLE ) | + GetWindowLongPtr( m_hParentWindow, GWL_EXSTYLE ) | WS_EX_LAYERED ); ShowWindow( m_hParentWindow, SW_SHOW ); diff --git a/modules/gui/skins2/win32/win32_window.cpp b/modules/gui/skins2/win32/win32_window.cpp index 1104805ee6..8603a6b3f8 100644 --- a/modules/gui/skins2/win32/win32_window.cpp +++ b/modules/gui/skins2/win32/win32_window.cpp @@ -178,7 +178,7 @@ void Win32Window::setOpacity( uint8_t value ) const if( m_isLayered ) { SetWindowLongPtr( m_hWnd, GWL_EXSTYLE, - GetWindowLong( m_hWnd, GWL_EXSTYLE ) & ~WS_EX_LAYERED ); + GetWindowLongPtr( m_hWnd, GWL_EXSTYLE ) & ~WS_EX_LAYERED ); // Redraw the window, otherwise we may end up with a grey rectangle // for some strange reason @@ -197,7 +197,7 @@ void Win32Window::setOpacity( uint8_t value ) const // (Re)Add the WS_EX_LAYERED attribute. // Resizing will be very slow, now :) SetWindowLongPtr( m_hWnd, GWL_EXSTYLE, - GetWindowLong( m_hWnd, GWL_EXSTYLE ) | WS_EX_LAYERED ); + GetWindowLongPtr( m_hWnd, GWL_EXSTYLE ) | WS_EX_LAYERED ); // Redraw the window, otherwise we may end up with a grey // rectangle for some strange reason -- 2.11.4.GIT