comparison src/video/wincommon/SDL_sysevents.c @ 1480:0a2bd6507477

More Win64 updates
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Mar 2006 05:21:32 +0000
parents 4aac8563c296
children 420b3f47806d
comparison
equal deleted inserted replaced
1479:993ef9ff4688 1480:0a2bd6507477
560 /* DJM - according to the docs for GetMenu(), the 560 /* DJM - according to the docs for GetMenu(), the
561 return value is undefined if hwnd is a child window. 561 return value is undefined if hwnd is a child window.
562 Aparently it's too difficult for MS to check 562 Aparently it's too difficult for MS to check
563 inside their function, so I have to do it here. 563 inside their function, so I have to do it here.
564 */ 564 */
565 style = GetWindowLongPtr(hwnd, GWL_STYLE); 565 style = GetWindowLong(hwnd, GWL_STYLE);
566 AdjustWindowRect( 566 AdjustWindowRect(
567 &size, 567 &size,
568 style, 568 style,
569 style & WS_CHILDWINDOW ? FALSE 569 style & WS_CHILDWINDOW ? FALSE
570 : GetMenu(hwnd) != NULL); 570 : GetMenu(hwnd) != NULL);