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
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!
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.