LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding windows taskbar.

"I am working on a custom TS operator interface written in CVI 5.5. I am trying to hide the windows task bar. I have used


SetPanelAttribute (panel, ATTR_SYSTEM_MENU_VISIBLE, 0);


and this works, except that when my modelsupport DLL puts a popup on the screen, the taskbar becomes visible again while the popup is present. How can I stop this?"
0 Kudos
Message 1 of 6
(4,595 Views)
I'm not sure I understand correctly, but did you try:

SetSystemAttribute (ATTR_TASKBAR_BUTTON_VISIBLE, 0);
0 Kudos
Message 2 of 6
(4,595 Views)
Oops, actually I am hiding the task bar with the following sequence of functions calls described in the CVI online help section on disableing task switching.

SetPanelAttribute (panel, ATTR_SIZABLE, FALSE);
SetPanelAttribute (panel, ATTR_CAN_MINIMIZE, FALSE);
SetPanelAttribute (panel, ATTR_CAN_MAXIMIZE, FALSE);
SetPanelAttribute (panel, ATTR_SYSTEM_MENU_VISIBLE, FALSE);
SetPanelAttribute (panel, ATTR_MOVABLE, FALSE);
SetPanelAttribute (panel, ATTR_WINDOW_ZOOM, VAL_MAXIMIZE);

I cannot duplicate these in my popup code because it would make the popup fill the screen, which is not desired. all that I want to make the entire taskbar, not just the button for my panel, invisible.
0 Kudos
Message 3 of 6
(4,595 Views)
It sounds like what you are asking is can you hide the Windows taskbar instead of covering it with a maximized panel. Setting ATTR_SYSTEM_MENU_VISIBLE has nothing to do with the Windows taskbar, it is referring to the Panel's system menu available when you click on the icon in the panel's title bar that has things like Restore, Minimize, Maximize... in it. (See attached image).

To my knowledge, there is no way to hide the taskbar. In CVI, you can maximize a panel over it and DisableTaskSwitching, but if the panel isn't full screen, I don't know of a way. There may be a way with SDK programming that you could find through Microsoft in SDK help or on MSDN.

Good luck,

Chris Matthews
National Instruments
0 Kudos
Message 4 of 6
(4,595 Views)
If your application is the only one you will run on your system, you can always replace the windows shell:

http://www.winguides.com/registry/display.php/850/
0 Kudos
Message 5 of 6
(4,595 Views)
You can use Windows API calls (FindWindow, EnableWindow, SetWindowPos)from user32.dll to show, hide, enable or disable the taskbar (at least in Windows 2000). See the attached CVI6.0 example.
0 Kudos
Message 6 of 6
(4,595 Views)