Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/tests/button.c:
- /* ignore events not from a tab control */
- if (!GetClassNameA(hwnd, class_name, ARRAY_SIZE(class_name)) ||
strcmp(class_name, WC_BUTTONA) != 0)
return;
- msg.message = event;
- msg.flags = winevent_hook|wparam|lparam;
- msg.wParam = object_id;
- msg.lParam = child_id;
- add_message(sequences, COMBINED_SEQ_INDEX, &msg);
+}
+static void init_winevent_hook(void) {
- hwineventhook = SetWinEventHook(EVENT_MIN, EVENT_MAX, GetModuleHandleA(0), msg_winevent_proc,
0, GetCurrentThreadId(), WINEVENT_INCONTEXT);
A style nitpick. Let's keep this aligned like other code in the same file.