Remove usages of g_hFrameWindow and g_hInstance from core emulator files. And Resource related Win32 functions. (PR #915)

. Win32Frame: remove WM_USER_RESTART.
This commit is contained in:
Andrea
2021-01-19 20:37:43 +00:00
committed by GitHub
parent 81279904e2
commit cdf1cb9106
26 changed files with 158 additions and 218 deletions
+2 -2
View File
@@ -2225,7 +2225,7 @@ void _CmdColorGet( const int iScheme, const int iColor )
{
TCHAR sText[ CONSOLE_WIDTH ];
wsprintf( sText, "Color: %d\nOut of range!", iColor );
MessageBox(GetFrame().g_hFrameWindow, sText, TEXT("ERROR"), MB_OK );
GetFrame().FrameMessageBox(sText, TEXT("ERROR"), MB_OK );
}
}
@@ -3042,7 +3042,7 @@ void DisasmCalcTopFromCurAddress( bool bUpdateTop )
"\tLen: %04X\n"
"\tMissed: %04X"),
g_nDisasmCurAddress - nLen, nLen, g_nDisasmCurAddress );
MessageBox( GetFrame().g_hFrameWindow, sText, "ERROR", MB_OK );
GetFrame().FrameMessageBox( sText, "ERROR", MB_OK );
#endif
}
}