MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / Setup

Method Setup

Source/Accelerator.cpp:300–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void CAccelerator::Setup()
301{
302 // Translate key table -> windows accelerator table
303
304 if (m_hAccel) {
305 DestroyAcceleratorTable(m_hAccel);
306 m_hAccel = NULL;
307 }
308
309 m_pAccelTable.clear(); // // //
310 for (const auto &x : m_pEntriesTable)
311 if (x.key) {
312 ACCEL a;
313 a.fVirt = FVIRTKEY | GetMod(x.mod);
314 a.key = x.key;
315 a.cmd = x.id;
316 m_pAccelTable.push_back(a);
317 }
318 m_hAccel = CreateAcceleratorTableW(m_pAccelTable.data(), ACCEL_COUNT);
319}
320
321BOOL CAccelerator::Translate(HWND hWnd, MSG *pMsg)
322{

Callers 3

CreateEditorMethod · 0.45
OnApplyMethod · 0.45
InitInstanceMethod · 0.45

Calls 3

GetModFunction · 0.85
clearMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected