From 4aee7436a3f612cee846cb6df39d553396c7d1f1 Mon Sep 17 00:00:00 2001 From: Dmitry Chapyshev Date: Sat, 9 May 2009 10:06:22 +0000 Subject: [PATCH] - SetClassLong -> SetClassLongPtr, GetClassLong -> GetClassLongPtr (for 64-bit compatible, see note in MSDN) Part 1/x svn path=/trunk/; revision=40858 --- reactos/base/shell/explorer/desktop/desktop.cpp | 2 +- reactos/base/shell/explorer/taskbar/desktopbar.cpp | 2 +- reactos/base/shell/explorer/taskbar/taskbar.cpp | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/base/shell/explorer/desktop/desktop.cpp b/reactos/base/shell/explorer/desktop/desktop.cpp index f83e74914c6..381162faabf 100644 --- a/reactos/base/shell/explorer/desktop/desktop.cpp +++ b/reactos/base/shell/explorer/desktop/desktop.cpp @@ -259,7 +259,7 @@ BackgroundWindow::BackgroundWindow(HWND hwnd) { // set background brush for the short moment of displaying the // background color while moving foreground windows - SetClassLong(hwnd, GCL_HBRBACKGROUND, COLOR_BACKGROUND+1); + SetClassLongPtr(hwnd, GCL_HBRBACKGROUND, COLOR_BACKGROUND+1); _display_version = RegGetDWORDValue(HKEY_CURRENT_USER, TEXT("Control Panel\\Desktop"), TEXT("PaintDesktopVersion"), 1); } diff --git a/reactos/base/shell/explorer/taskbar/desktopbar.cpp b/reactos/base/shell/explorer/taskbar/desktopbar.cpp index 0fc5edd3bf1..08e42d758f4 100644 --- a/reactos/base/shell/explorer/taskbar/desktopbar.cpp +++ b/reactos/base/shell/explorer/taskbar/desktopbar.cpp @@ -109,7 +109,7 @@ LRESULT DesktopBar::Init(LPCREATESTRUCT pcs) _hwndStartButton = hwndStart; // disable double clicks - SetClassLong(hwndStart, GCL_STYLE, GetClassLong(hwndStart, GCL_STYLE) & ~CS_DBLCLKS); + SetClassLongPtr(hwndStart, GCL_STYLE, GetClassLongPtr(hwndStart, GCL_STYLE) & ~CS_DBLCLKS); // create task bar _hwndTaskBar = TaskBar::Create(_hwnd); diff --git a/reactos/base/shell/explorer/taskbar/taskbar.cpp b/reactos/base/shell/explorer/taskbar/taskbar.cpp index e3064a78e14..58442bfb2a6 100644 --- a/reactos/base/shell/explorer/taskbar/taskbar.cpp +++ b/reactos/base/shell/explorer/taskbar/taskbar.cpp @@ -333,10 +333,10 @@ HICON get_window_icon_small(HWND hwnd) SendMessageTimeout(hwnd, WM_GETICON, ICON_BIG, 0, SMTO_ABORTIFHUNG, 1000, (LPDWORD)&hIcon); if (!hIcon) - hIcon = (HICON)GetClassLong(hwnd, GCL_HICONSM); + hIcon = (HICON)GetClassLongPtr(hwnd, GCL_HICONSM); if (!hIcon) - hIcon = (HICON)GetClassLong(hwnd, GCL_HICON); + hIcon = (HICON)GetClassLongPtr(hwnd, GCL_HICON); if (!hIcon) SendMessageTimeout(hwnd, WM_QUERYDRAGICON, 0, 0, 0, 1000, (LPDWORD)&hIcon); @@ -358,10 +358,10 @@ HICON get_window_icon_big(HWND hwnd, bool allow_from_class) if (allow_from_class) { if (!hIcon) - hIcon = (HICON)GetClassLong(hwnd, GCL_HICON); + hIcon = (HICON)GetClassLongPtr(hwnd, GCL_HICON); if (!hIcon) - hIcon = (HICON)GetClassLong(hwnd, GCL_HICONSM); + hIcon = (HICON)GetClassLongPtr(hwnd, GCL_HICONSM); } if (!hIcon)