Page 1 of 1

Hide Taskbar icon of a window

Posted: Sat Feb 22, 2003 10:52 am
by BackupUser
Code updated for 5.20+

Restored from previous forum. Originally posted by Eddy.

My 3rd contribution
If you want to hide window taskbar icon
Change standard window to toolbar style window...Eheh
Easy way to do it.

Code: Select all

;**********************************************

#WINDOW_LIBRARY = 0

Style.l = #WS_POPUPWINDOW|#WS_DLGFRAME|#WS_CLIPSIBLINGS|#DS_MODALFRAME|#DS_3DLOOK ;Toolbar style
OpenWindow(#WINDOW_LIBRARY, 100, 100, 250, 305, "Blitz libraries",Style)

*NewExStyle = #WS_EX_TOOLWINDOW; Toolbar ExStyle
SetWindowLong_(WindowID(#WINDOW_LIBRARY), #GWL_EXSTYLE, *NewExStyle);Set ExStyle   
SetWindowPos_(WindowID(#WINDOW_LIBRARY), #HWND_TOPMOST,0,0,0,0,#SWP_NOMOVE|#SWP_NOSIZE);Always on top

Repeat
  Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow

;**********************************************
Looks, one icon eh eh :wink:

Armageddon command : Format All +S +Pain \now

Posted: Sat Feb 22, 2003 11:14 am
by BackupUser
Restored from previous forum. Originally posted by Keph.

Merci bcp Eddy pour ta contribution ! je cherchais il y a un temps comment faire justement pour n'afficher qu'une icone dans la barre des taches !!!

--Sorry for english speaking people--

Posted: Sat Feb 22, 2003 11:17 am
by BackupUser
Restored from previous forum. Originally posted by Eddy.

@Keph, 2rien :)

Hihhaaa !!

Posted: Sun Feb 23, 2003 12:00 am
by BackupUser
Restored from previous forum. Originally posted by PB.

> If you want to hide window taskbar icon
> Change standard window to toolbar style window...Eheh
> Easy way to do it.

Been there, done that:

viewtopic.php?t=4865

Please check the forums before posting a tip that already exists.

Posted: Sun Feb 23, 2003 12:15 am
by BackupUser
Restored from previous forum. Originally posted by Fangbeast.

PB, that's a bit blunt. And there is always more than one way of doing something

We are Dyslexic of Borg, prepare to have your ass laminated!

Posted: Sun Feb 23, 2003 12:30 am
by BackupUser
Restored from previous forum. Originally posted by Eddy.

LOL sorry, it's true.
But the initial goal of this tip is to hide icon tackbar not to create a toolwindow.

Search :"hide taskbar icon "
And tell me if you find your topic :)

==||:::::>*<:::::||==:evil:

Posted: Sun Feb 23, 2003 10:23 am
by BackupUser
Restored from previous forum. Originally posted by PB.

> the initial goal of this tip is to hide icon tackbar not to create
> a toolwindow.

A ToolWindow is a normal window that doesn't show in the Taskbar.

> Search :"hide taskbar icon "
> And tell me if you find your topic

More to the point: search for "hide app from taskbar" and the very
first match found, the FAQ, shows how to do it.

These forums will quickly turn to crap if people just keep posting
the same stuff over and over. Use the search functions PROPERLY
before posting stuff, is all I ask...

Posted: Sun Feb 23, 2003 2:13 pm
by BackupUser
Restored from previous forum. Originally posted by Hi-Toro.

The COM example to hide a window from the taskbar fails here (it does hide it, but it reappears in certain circumstances). This example would suit the intended purpose just fine for many people; no harm in giving people more options.


--
See ya,
James L Boyd.
http://www.hi-toro.com/
--

Posted: Sun Feb 23, 2003 6:47 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> The COM example to hide a window from the taskbar fails here

The example in the FAQ is not the COM method, but is exactly the same
code as posted here, which is why I want people to read before posting.