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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user