Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I force child window to foreground?

Posted on 1998-11-05
6
Medium Priority
?
486 Views
Last Modified: 2013-12-28
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?
0
Comment
Question by:jsreedhar
  • 3
  • 3
6 Comments
 

Author Comment

by:jsreedhar
ID: 1647006
Adjusted points to 150
0
 
LVL 5

Expert Comment

by:scrapdog
ID: 1647007
Ae you sure SetForegroundWindow is being called, and not SetActiveWindow?
0
 

Author Comment

by:jsreedhar
ID: 1647008
Yes, SetForegroundWindow is used. In Win95 the rusult window is forced to become foregoundwindow whereas in Win98 it is not happening.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 5

Expert Comment

by:scrapdog
ID: 1647009
Is it a program you wrote?
0
 
LVL 5

Accepted Solution

by:
scrapdog earned 450 total points
ID: 1647010
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
 

Author Comment

by:jsreedhar
ID: 1647011
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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question