mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-25 19:19:02 +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:
@@ -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