BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

need help with app with not taskbar & runs in background

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.misc
View previous topic :: View next topic  
Author Message
Ken Fletcher
Guest





PostPosted: Wed Jun 16, 2004 6:44 pm    Post subject: need help with app with not taskbar & runs in background Reply with quote



I have written a simple app that will run with the user is logged in, and
terminate when he logs out. Works fine.

But, I want the code to run in the background without a window or a taskbar
entry.

Thanks for any help

Ken


Back to top
BK
Guest





PostPosted: Sun Jun 27, 2004 2:31 pm    Post subject: Re: need help with app with not taskbar & runs in background Reply with quote



That's quite simple. Just go into the project source, and add the following
line after "Application.Initialize":

SetWindowLong(Application.Handle, GWL_EXSTYLE,
GetWindowLong(Application.Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW);

And remember to add Windows to the uses clause.
I hope it works ;)

BK

"Ken Fletcher" <fletchek (AT) nwlink (DOT) com> skrev i en meddelelse
news:10d1582fh7kbbee (AT) corp (DOT) supernews.com...
Quote:
I have written a simple app that will run with the user is logged in, and
terminate when he logs out. Works fine.

But, I want the code to run in the background without a window or a
taskbar
entry.

Thanks for any help

Ken





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.