473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

OnKillFocus, not working with topmost window

Hi,

I have a Dlg, and i used SetWindowpos(...) to ensure that it is the top most
window.
But, i also want to ensure that i never looses the focus for that window.

If i click on another window and want the focus to return to my window until
the user has finished with it.

How could that be done?

Many Thanks

Sims
Jul 21 '05 #1
2 1545
"Sims" <si*********@hotmail.com> wrote in message news:<bv************@ID-162430.news.uni-berlin.de>...
Hi,

I have a Dlg, and i used SetWindowpos(...) to ensure that it is the top most
window.
But, i also want to ensure that i never looses the focus for that window.

If i click on another window and want the focus to return to my window until
the user has finished with it.

How could that be done?


Are you talking about a system-wide modal dialog? If so, you can set
your dialog to have that property. I've never done it, so I can't tell
you how, but now you know what you're looking for...

HTH

Paul.
Jul 21 '05 #2
> >

Are you talking about a system-wide modal dialog? If so, you can set
your dialog to have that property. I've never done it, so I can't tell
you how, but now you know what you're looking for...


Hi,

Thanks for your input.

I don't think i want such drastic actions.
What i was after was to be the top most window, (and have the focus), for a
selected window.

For example, lets say that i start the calculator, i want my application to
display a dialog box and force the user to acknowledge it b4 he can do
anything.
I can get the window of the calculator but i cannot force the focus to
remain on my dialog box.

Sims
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JaguarX | last post by:
I have an application that needs a window to stay on top of the other ones, I thought that TopMost = true would be suitable for this feature but it also makes this window to stay on top of all other...
2
by: Claire | last post by:
I need my communication status window to be topmost when it's open/active. Ive set the TopMost property of the form to true and it does work ok. After performing tasks this window generates an...
12
by: E Goforth | last post by:
Hello, I have a VB6 app that calls a VB.NET app via named pipes and a third party component. Inside the VB.NET app I'm trying to force a form to the top, at least temporarily. Inside a form's...
2
by: Sims | last post by:
Hi, I have a Dlg, and i used SetWindowpos(...) to ensure that it is the top most window. But, i also want to ensure that i never looses the focus for that window. If i click on another window...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.