::WinSetAccelTable( vHabmain
,hAccel
- ,(HWND)pFrame->GetHWND()
+ ,(HWND)pFrame->GetFrame()
);
}
M_ACCELDATA->m_hAccel = hAccel;
// Create from an array
wxAcceleratorTable::wxAcceleratorTable(
int n
-, wxAcceleratorEntry vaEntries[]
+, const wxAcceleratorEntry vaEntries[]
)
{
int nAccelLength = ((sizeof(ACCEL) * n) + sizeof(ACCELTABLE));
pArr->aaccel[i].key = uKey;
pArr->aaccel[i].cmd = uCmd;
}
- pArr->codepage = 437; // default to english Fix???
+ pArr->codepage = ::WinQueryCp(wxTheApp->m_hMq);
pArr->cAccel = (USHORT)n;
M_ACCELDATA->m_hAccel = ::WinCreateAccelTable( vHabmain
,pArr
::WinSetAccelTable( vHabmain
,M_ACCELDATA->m_hAccel
- ,(HWND)pFrame->GetHWND()
+ ,(HWND)pFrame->GetFrame()
);
}
int x = 1;
}
return (Ok() && rc);
-// ::WinTranslateAccel( vHabmain
-// ,(HWND)hWnd
-// ,GetHaccel()
-// ,pMsg
-// );
} // end of wxAcceleratorTable::Translate