473,511 Members | 16,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1551
"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
6818
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
4544
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
7486
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
308
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
7245
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
7144
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
7427
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...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5671
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.