How do I force child window to foreground?

My application which is running under windows 95 at some point of time forces the child window to become foreground window. To do this SetForegroundWindow() is used. But now the same application under Windows 98 is not forcing the child window to come foreground. It just activates. Is there any difference in SetForegroundWindow() in windows 95 and 98. If so, what do to over come this problem?
jsreedharAsked:
Who is Participating?
 
scrapdogCommented:
Windows 98 and NT 5 have a new implementation of SetForegroundWindow that makes this difficult or almost impossible.  Instead of bringing the window to the foreground as Windows 95 did, the task bar blinks.  I think there are ways to get around this, like setting system hooks, or trick the system by simulating ALT-TAB, but you will have to check the following page to see for yourself.  I haven't tried any of these methods, but you can go to

http://msdn.microsoft.com/developer/news/devnews/mayjun98/drgui7_3.htm

to get more information...it might be very difficult, but this page will get you started by telling you what you have to do...
0
 
jsreedharAuthor Commented:
Adjusted points to 150
0
 
scrapdogCommented:
Ae you sure SetForegroundWindow is being called, and not SetActiveWindow?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
jsreedharAuthor Commented:
Yes, SetForegroundWindow is used. In Win95 the rusult window is forced to become foregoundwindow whereas in Win98 it is not happening.
0
 
scrapdogCommented:
Is it a program you wrote?
0
 
jsreedharAuthor Commented:
I didn't write the program. It is an application which I am testing on 95 and 98. And I found this behaviour, after debgging we came to know that problem is with SetForegroundWindow.

Thanks a lot.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.