Suppress an x64 build warning (trunk only)
This commit is contained in:
@@ -1130,7 +1130,7 @@ void nhlock_windows( BOOL lock )
|
|||||||
for( i=0; i<MAXWINDOWS; i++ ) {
|
for( i=0; i<MAXWINDOWS; i++ ) {
|
||||||
if( IsWindow(GetNHApp()->windowlist[i].win) && !GetNHApp()->windowlist[i].dead) {
|
if( IsWindow(GetNHApp()->windowlist[i].win) && !GetNHApp()->windowlist[i].dead) {
|
||||||
DWORD style;
|
DWORD style;
|
||||||
style = GetWindowLongPtr(GetNHApp()->windowlist[i].win, GWL_STYLE);
|
style = (DWORD)GetWindowLongPtr(GetNHApp()->windowlist[i].win, GWL_STYLE);
|
||||||
if( lock ) style &= ~WS_CAPTION;
|
if( lock ) style &= ~WS_CAPTION;
|
||||||
else style |= WS_CAPTION;
|
else style |= WS_CAPTION;
|
||||||
SetWindowLongPtr(GetNHApp()->windowlist[i].win, GWL_STYLE, style);
|
SetWindowLongPtr(GetNHApp()->windowlist[i].win, GWL_STYLE, style);
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ HWND mswin_init_menu_window (int type) {
|
|||||||
|
|
||||||
if( !GetNHApp()->bWindowsLocked ) {
|
if( !GetNHApp()->bWindowsLocked ) {
|
||||||
DWORD style;
|
DWORD style;
|
||||||
style = GetWindowLongPtr(ret, GWL_STYLE);
|
style = (DWORD)GetWindowLongPtr(ret, GWL_STYLE);
|
||||||
style |= WS_CAPTION;
|
style |= WS_CAPTION;
|
||||||
SetWindowLongPtr(ret, GWL_STYLE, style);
|
SetWindowLongPtr(ret, GWL_STYLE, style);
|
||||||
SetWindowPos(ret, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
|
SetWindowPos(ret, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ HWND mswin_init_text_window () {
|
|||||||
SetWindowText(ret, "Text");
|
SetWindowText(ret, "Text");
|
||||||
if( !GetNHApp()->bWindowsLocked ) {
|
if( !GetNHApp()->bWindowsLocked ) {
|
||||||
DWORD style;
|
DWORD style;
|
||||||
style = GetWindowLongPtr(ret, GWL_STYLE);
|
style = (DWORD)GetWindowLongPtr(ret, GWL_STYLE);
|
||||||
style |= WS_CAPTION;
|
style |= WS_CAPTION;
|
||||||
SetWindowLongPtr(ret, GWL_STYLE, style);
|
SetWindowLongPtr(ret, GWL_STYLE, style);
|
||||||
SetWindowPos(ret, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
|
SetWindowPos(ret, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
|
||||||
|
|||||||
Reference in New Issue
Block a user