GetActiveWindowähnliche Funktion gesucht (für Childs)



  • Hi,

    ich suche eine Funktion mit der ich das Handle des Fensters bekomme, das gerade den Input Fokus hat, also zB auch ein Button, wenn dieser ausgewählt ist. Leider hat mir das MSDN nicht geholfen, naja vllt. bin auch nur zu dumm 😞

    Mfg Xenon



  • GetFocus



  • Will mir da etwa jemand den Nickname stehlen 😉 🤡

    Zur Frage: Geht es nur darum, das innerhalb deiner Anwendung zu ermittelm, so kannst du dazu, wie schon erwähnt GetFocus verwenden. Ansonsten:

    Use the GetForegroundWindow function to retrieve the handle to the window with which the user is currently working. You can associate your thread's message queue with the windows owned by another thread by using the AttachThreadInput function.


Anmelden zum Antworten