Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do I force child window to foreground?

Posted on 1998-11-05
6
Medium Priority
?
475 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
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

722 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