WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Hide all the Icons on the Desktop


Is there one (or any other easy way) to hide all the icons on the desktop, and also to show all the icons again?
#DefineFunction Udfshowdesktop (option)
	; When option is: @TRUE = Show Desktop, @FALSE = Hide Desktop
	
	user32 = DLLload(StrCat(DirWindows(1),"User32.DLL"))
	hwnd = DllCall(user32, long:"FindWindowExA", long:0,long:0,lpstr:"Progman",long:0)
	If (hwnd<>0)
	   option = Min(@True,Max(@False,option))
	   DllCall(user32, long:"ShowWindow", long:hwnd, long:option)
	EndIf                                          ; (hWnd<>0).
	DLLfree(user32)
	Return

#EndFunction                                      ; Udfshowdesktop.

Article ID:   W17004
File Created: 2007:07:03:14:27:34
Last Updated: 2007:07:03:14:27:34