1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0023904: Multiple warning on Windows x86_64 target concerning WinAPI usage

This commit is contained in:
kgv
2013-04-16 13:03:05 +04:00
committed by kgv
parent f14190252b
commit 6a7d83c480
9 changed files with 28 additions and 28 deletions

View File

@@ -429,27 +429,25 @@ void WNT_Window :: doCreate (
const Quantity_NameOfColor aBackColor
)
{
LONG uData;
WINDOWPLACEMENT wp;
ZeroMemory (&myExtraData, sizeof (WNT_WindowData));
myHWindow = aHandle;
myHParentWindow = GetParent ((HWND )aHandle);
uData = GetWindowLongPtr ((HWND )aHandle, GWLP_USERDATA);
LONG_PTR uData = GetWindowLongPtr ((HWND )aHandle, GWLP_USERDATA);
myUsrData = Standard_Address(-1);
SetBackground (aBackColor);
myExtraData.WNT_Window_Ptr = (void* )this;
if (uData != (LONG )&myExtraData)
if (uData != (LONG_PTR )&myExtraData)
{
myUsrData = (Standard_Address )SetWindowLongPtr ((HWND )myHWindow, GWLP_USERDATA, (LONG_PTR )&myExtraData);
}
myExtraData.dwFlags = WDF_FOREIGN;
WINDOWPLACEMENT wp;
wp.length = sizeof (WINDOWPLACEMENT);
GetWindowPlacement ((HWND )myHWindow, &wp);