doubt using GetForegroundWindow()

i am using GetForegroundWindow() to retrieve the window's handle.
the problem is it also retrives
1)systemtray handle,
2)start button popup windows handle
and also
3)desktop handle too but i do not need them what should i do.


plz help.

Comments

  • [color=Blue]You should store the window handle you need into your program data and then you will not need to call GetForegroundWindow.[/color]
  • can u plz give me an example.
    the window may be any like browser,notepad...etc.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories