特に、SendMessage() がかどうか最初のパラメーターでは、
トップの (WINDOWS では-1 として定義されています。
H で定義します。
トップの場合は、最初のパラメーターは、これは 1 つのシステム内のすべてのトップレベル ウィンドウを列挙
およびこれらのすべてのウィンドウにメッセージを送信します。
SendMessage() へ 1 つの呼び出しが SendMessage() の呼び出しは最上位のウィンドウの数を内部的に変換し

Among other things, SendMessage() determines whether the first parameter is HWND_BROADCAST (defined as -1 in WINDOWS.H).
If HWND_BROADCAST is the first parameter,
SendMessage enumerates all top-level windows in the system and sends the message to all these windows.