Solved

How do I force child window to foreground?

Posted on 1998-11-05
6
464 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 5

Expert Comment

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

Accepted Solution

by:
scrapdog earned 150 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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

623 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