Hmm... Irgendwie bn ich jetzt ratlos. Nachdem ich mir theomegas nochmal Frage angesehen habe: nimm GetForegroundWindow(), da ich annehme, dass du das Parent-Fenster und kein Control (ob GetActiveWindow() das nun bringt oder nicht) haben willst und in der
MSDN-Library "The GetForegroundWindow function returns a
handle to the foreground window (the window with which the user is currently working)." steht.
MfG,
d3g