Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ShowinTaskBar for external application

3 views
Skip to first unread message

Ferio

unread,
Jun 25, 2008, 3:07:29 PM6/25/08
to
I'm trying to control the showintask bar of an external program to false,
since it is not a form how can I achieve this?

Karl E. Peterson

unread,
Jun 25, 2008, 3:16:45 PM6/25/08
to
Ferio wrote:
> I'm trying to control the showintask bar of an external program to false,
> since it is not a form how can I achieve this?

Back in NT4, I wanted to do this with the Services applet. This is the code I used:

' Tweak style settings of Services applet so that it
' shows up on taskbar, and uses the default Windows
' flag as its icon.
If hWnd Then
If StyleExFlipBit(hWnd, WS_EX_APPWINDOW, True, False) Then
Call StyleExFlipBit(hWnd, WS_EX_DLGMODALFRAME, False, False)
Call WindowShow(hWnd, SW_HIDE)
Call Sleep(0)
Call WindowShow(hWnd, SW_NORMAL)
End If
End If

You can download the full example here: http://vb.mvps.org/samples/FormBdr
--
.NET: It's About Trust!
http://vfred.mvps.org


Ferio

unread,
Jun 25, 2008, 6:34:13 PM6/25/08
to

I passed the handle to this code and I can see that the external application
flicker at the task bar each time I pass the handle to it. I tried to delete
the line Call WindowShow(hWnd, SW_NORMAL) it seems to be hidden from the task
bar but even the window disappear. I want to window to still show but hidden
from the taskbar. Is there something I missed?

Thank you!

Karl E. Peterson

unread,
Jun 25, 2008, 7:13:59 PM6/25/08
to

Oh. No. Something *I* missed. That code forces a window *into* the taskbar.
Basically, you'd do just the opposite. See how the ShowInTaskbar property is
implemented in the included CFormBorder class.

0 new messages