X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FVisual3d%2FVisual3d_View.cxx;h=ec6d48e73304e36de0d6de09b6018edbccf544ed;hp=d00d0a9fa7a3f6a0da57e15209163908fd191440;hb=f54e0336745c48890de1c98a27115d5f03c6c7b5;hpb=81bba7173ea530bbfd8e81f0d5debb5a6ef1cf8e diff --git a/src/Visual3d/Visual3d_View.cxx b/src/Visual3d/Visual3d_View.cxx index d00d0a9fa7..ec6d48e733 100755 --- a/src/Visual3d/Visual3d_View.cxx +++ b/src/Visual3d/Visual3d_View.cxx @@ -479,11 +479,7 @@ const Handle(WNT_Window) theWindow = *(Handle(WNT_Window) *) &AWindow; #ifdef RIC120302 MyCView.DefWindow.XParentWindow = ( HWND )(theWindow->HParentWindow()); #endif -#ifndef _WIN64 - wd = ( WNT_WindowData* )GetWindowLong (( HWND )(theWindow->HWindow()), GWL_USERDATA); -#else - wd = ( WNT_WindowData* )GetWindowLong (( HWND )(theWindow->HWindow()), GWLP_USERDATA); -#endif + wd = ( WNT_WindowData* )GetWindowLongPtr (( HWND )(theWindow->HWindow()), GWLP_USERDATA); wd -> WNT_WDriver_Ptr = ( void* )this; wd -> WNT_VMgr = ( void* )MyPtrViewManager; #endif /* WNT */