mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-21 23:16:39 +00:00
WIP: IDC_SLOTn_OPTION for HDD
This commit is contained in:
@@ -1223,6 +1223,45 @@ bool HarddiskInterfaceCard::ImageSwap(void)
|
||||
|
||||
//===========================================================================
|
||||
|
||||
HarddiskInterfaceCard* HarddiskInterfaceCard::ms_this = 0;
|
||||
|
||||
INT_PTR CALLBACK HarddiskInterfaceCard::DlgProc(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam)
|
||||
{
|
||||
// Switch from static func to our instance
|
||||
return HarddiskInterfaceCard::ms_this->DlgProcInternal(hWnd, message, wparam, lparam);
|
||||
}
|
||||
|
||||
INT_PTR HarddiskInterfaceCard::DlgProcInternal(HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam)
|
||||
{
|
||||
switch (message)
|
||||
{
|
||||
case WM_COMMAND:
|
||||
switch (LOWORD(wparam))
|
||||
{
|
||||
case IDOK:
|
||||
// DlgOK(hWnd);
|
||||
return TRUE;
|
||||
|
||||
case IDCANCEL:
|
||||
// DlgCANCEL(hWnd);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
||||
case WM_CLOSE:
|
||||
EndDialog(hWnd, 0);
|
||||
return TRUE;
|
||||
|
||||
case WM_INITDIALOG:
|
||||
// TODO
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
||||
// Unit version history:
|
||||
// 2: Updated $C7nn firmware to fix GH#319
|
||||
// 3: Updated $Csnn firmware to fix GH#996 (now slot-independent code)
|
||||
|
||||
Reference in New Issue
Block a user