PDA

View Full Version : Hide application from windows taskbar



cocoflop
17-05-2007, 22:59
Hello,
Do you know how can I hide the application panel from windows taskbar?
I remeber I had seen it in VB once, I'm not sure though.

ErosOlmi
18-05-2007, 06:17
An easy and fast way is to use %WS_EX_TOOLWINDOW option in extended style of the dialog when you crete the window.
This will change the window caption to be like a tool window but will not show it in taskbar.
Example:



DIALOG NEW 0, "Do not show in taskbar ...", -1, -1, 260, 200, _
%WS_DLGFRAME OR %WS_CAPTION OR %WS_SYSMENU OR %WS_OVERLAPPEDWINDOW, _
%WS_EX_TOOLWINDOW _ '<<---------------extended style
TO hDlg

cocoflop
18-05-2007, 15:17
OK, thanks Eros.

ErosOlmi
18-05-2007, 15:29
If you find any code in VB of C that makes the trick in another way leaving the window styles as they are, let me know and I will add that functionality as UI module function.

Ciao
Eros