mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-24 11:16:58 +00:00
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:
@@ -412,7 +412,7 @@ UINT CPageDisk::RemovalConfirmation(UINT uCommand)
|
||||
|
||||
if (bMsgBox)
|
||||
{
|
||||
int nRes = MessageBox(GetFrame().g_hFrameWindow, szText, TEXT("Eject/Unplug Warning"), MB_ICONWARNING | MB_YESNO | MB_SETFOREGROUND);
|
||||
int nRes = GetFrame().FrameMessageBox(szText, TEXT("Eject/Unplug Warning"), MB_ICONWARNING | MB_YESNO | MB_SETFOREGROUND);
|
||||
if (nRes == IDNO)
|
||||
uCommand = 0;
|
||||
}
|
||||
|
||||
@@ -285,7 +285,7 @@ void CPropertySheetHelper::PostMsgAfterClose(HWND hWnd, PAGETYPE page)
|
||||
return;
|
||||
}
|
||||
|
||||
UINT uAfterClose = 0;
|
||||
bool restart = false;
|
||||
|
||||
if (m_ConfigNew.m_Apple2Type == A2TYPE_CLONE)
|
||||
{
|
||||
@@ -310,11 +310,11 @@ void CPropertySheetHelper::PostMsgAfterClose(HWND hWnd, PAGETYPE page)
|
||||
|
||||
ApplyNewConfig();
|
||||
|
||||
uAfterClose = WM_USER_RESTART;
|
||||
restart = true;
|
||||
}
|
||||
|
||||
if (uAfterClose)
|
||||
PostMessage(GetFrame().g_hFrameWindow, uAfterClose, 0, 0);
|
||||
if (restart)
|
||||
GetFrame().Restart();
|
||||
}
|
||||
|
||||
bool CPropertySheetHelper::CheckChangesForRestart(HWND hWnd)
|
||||
|
||||
Reference in New Issue
Block a user