Frank Richter frank.richter@gmail.com writes:
+static BOOL CALLBACK UXTHEME_broadcast_msg (HWND hWnd, LPARAM msg) +{
- if (hWnd == NULL)
- {
- EnumWindows (UXTHEME_broadcast_msg, msg);
- }
- else
- {
- PostMessageW(hWnd, msg, 0, 0);
- EnumChildWindows (hWnd, UXTHEME_broadcast_msg, msg);
The recursion is redundant here, EnumChildWindows already enumerates all children.