MSG msg;
std::unordered_set<haccel> haccel_set;
haccel_set.insert(LoadAcceleratorsW(hInstance, (wchar_t*)IDR_ACCELERATOR1));
// 主消息循环:
while (GetMessageW(&msg, 0, 0, 0))
{
BOOL bOK = FALSE;
for (HACCEL haccel : haccel_set)
{
bOK = bOK || TranslateAcceleratorW(msg.hwnd, haccel, &msg);
}
if (!bOK && !IsDialogMessageW(msg.hwnd, &msg))
{
TranslateMessage(&msg);
DispatchMessageW(&msg);
}
}</haccel>
时段 | 个数 |
---|---|
{{f.startingTime}}点 - {{f.endTime}}点 | {{f.fileCount}} |