 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ken Fletcher Guest
|
Posted: Wed Jun 16, 2004 6:44 pm Post subject: need help with app with not taskbar & runs in background |
|
|
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
|
Posted: Sun Jun 27, 2004 2:31 pm Post subject: Re: need help with app with not taskbar & runs in background |
|
|
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 |
|
 |
|
|
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
|
|