The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
Thread Tools Display Modes
Old 06-06-2005, 05:16 PM   #1
FLAC
 
PatO's Avatar
 
Join Date: Dec 2000
Location: Afton MN
Vehicle: 2001 Jeep Cherokee
Posts: 1,119
My Photos: (0)
Keep window on top

I've written a small app to sniff messages from WinLIRC. The app displays a 1-character window to tell me which "mode" it's in (defines the function of buttons on the remote).

My problems is that Frodo likes being on top. And it tends to hide my window after a mouse (er, finger) click.

How do I get my window back on top? I'm using C# (though that shouldn't matter - it's likely a sendmessage command I'll have to use). Currently, I'm passing the window handle into SetForegroundWindow in USER32.DLL, but that's not cutting the mustard. Anyone have any thoughts on this?
__________________
http://jeepmp3.home.comcast.net
CarPC Stolen. Starting over.
Ne1 recognize the avatar?
PatO is offline   Reply With Quote
Sponsored Links
Old 06-06-2005, 05:30 PM   #2
Super Moderator
xBrady's CarPC Specs
 
xBrady's Avatar
 
Join Date: Apr 2004
Location: USA
Vehicle: 1999/Volvo/S80
Posts: 4,572
My Photos: (1)
You just have to set the TopMost property of your form to true. So like this:
this.TopMost = true;

Hope that helps.
__________________
AMD XP 2600+/512MB RAM/120GB hard drive
Opus 150W/DVD/GPS/7" Lilliput TS/802.11g/Bluetooth
Installed.


-GPSSecure- - GPS Tracking
-AltTabber2.2.2- - Handy touchscreen utility.
xBrady is offline   Reply With Quote
Old 06-06-2005, 07:39 PM   #3
FLAC
 
PatO's Avatar
 
Join Date: Dec 2000
Location: Afton MN
Vehicle: 2001 Jeep Cherokee
Posts: 1,119
My Photos: (0)
Quote: Originally Posted by xBrady
You just have to set the TopMost property of your form to true. So like this:
this.TopMost = true;

That only works on windows running in the same process... Thanks for the suggestion, though.
__________________
http://jeepmp3.home.comcast.net
CarPC Stolen. Starting over.
Ne1 recognize the avatar?
PatO is offline   Reply With Quote
Old 06-06-2005, 08:23 PM   #4
Super Moderator
xBrady's CarPC Specs
 
xBrady's Avatar
 
Join Date: Apr 2004
Location: USA
Vehicle: 1999/Volvo/S80
Posts: 4,572
My Photos: (1)
Quote: Originally Posted by PatO
That only works on windows running in the same process... Thanks for the suggestion, though.

I guess I didn't understand what you are trying to do. So you have your app that sniffs messages from another app and is not staying on top? Or is it the other program that won't stay on top? I'm not seeing where you are starting another process.
__________________
AMD XP 2600+/512MB RAM/120GB hard drive
Opus 150W/DVD/GPS/7" Lilliput TS/802.11g/Bluetooth
Installed.


-GPSSecure- - GPS Tracking
-AltTabber2.2.2- - Handy touchscreen utility.
xBrady is offline   Reply With Quote
Old 06-06-2005, 08:49 PM   #5
FLAC
 
PatO's Avatar
 
Join Date: Dec 2000
Location: Afton MN
Vehicle: 2001 Jeep Cherokee
Posts: 1,119
My Photos: (0)
As far as this thread is concerned, my program is a standalone appliction. It has a window which I need to always keep on top. On top of Frodoplayer, at any rate.

In 95, this was easy to do. In fact, MS removed this capability because it was a major security risk (think virus software). I'm thinking that there may be a few options, but am uncertain how to implement them, hence the question.

A couple I can think of are: Set up a windows message to detect when focus is lost and redraw the window on top. Integrate into the same process Frodo is running and use the TopMost property (can FrodoComm/Svcs do this?). Use a timer to force it on top.

Any other suggestions? I'm going to start digging through MSDN....
__________________
http://jeepmp3.home.comcast.net
CarPC Stolen. Starting over.
Ne1 recognize the avatar?
PatO is offline   Reply With Quote
Old 06-06-2005, 08:59 PM   #6
FLAC
 
PatO's Avatar
 
Join Date: Dec 2000
Location: Afton MN
Vehicle: 2001 Jeep Cherokee
Posts: 1,119
My Photos: (0)
Quote: Originally Posted by xBrady
You just have to set the TopMost property of your form to true. So like this:
this.TopMost = true;

Doh! That DOES work...
I sit corrected. You da man!
__________________
http://jeepmp3.home.comcast.net
CarPC Stolen. Starting over.
Ne1 recognize the avatar?
PatO is offline   Reply With Quote
Old 06-06-2005, 09:34 PM   #7
Super Moderator
xBrady's CarPC Specs
 
xBrady's Avatar
 
Join Date: Apr 2004
Location: USA
Vehicle: 1999/Volvo/S80
Posts: 4,572
My Photos: (1)
Quote: Originally Posted by PatO
Doh! That DOES work...
I sit corrected. You da man!


Glad you got it working.
__________________
AMD XP 2600+/512MB RAM/120GB hard drive
Opus 150W/DVD/GPS/7" Lilliput TS/802.11g/Bluetooth
Installed.


-GPSSecure- - GPS Tracking
-AltTabber2.2.2- - Handy touchscreen utility.
xBrady is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Onscreen keyboard gti Map Monkey 40 06-14-2008 10:00 PM
Alpine City Cruise Hell-Stopper RR Skins 170 02-22-2007 10:05 PM
iGuidance 2.x auto-run shortcut ziggyrama GPS 1 08-13-2005 06:05 PM
SpeakEasy Voice Recognition - Release 0.9.1 ruairi Software & Software Development 11 06-03-2005 05:19 PM
Overlay differnet Infos on top of the mapping window ? neuwacom Map Monkey 0 04-08-2005 05:07 AM


All times are GMT -5. The time now is 07:38 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics