JSI Tip 5077. How do I disable the Minimize, Maximize, and Close ToolTips?

Jerold Schulman

March 31, 2002

1 Min Read
ITPro Today logo in a gray background | ITPro Today

When you hover the cursor over the Minimize, Maximize, and Close buttons, on your Windows 2000 or Windows XP desktop, the ToolTips are displayed.

One reason to disable these ToolTips is that some 16-bit applications may experience access violations in WOW32.DLL when these ToolTips are enabled.

Using REG.EXE on Windows 2000 from the Windows 2000 Support Tools, and REG.EXE built into Windows XP, I have scripted UPM.BAT to remove these ToolTips.

You can run UPM.BAT individually, or use Workstation.bat to run them on all the Windows 2000 and Windows XP members of your domain.

UPM.BAT contains:

@echo off
if /i "%OS%" NEQ "Windows_NT" goto :EOF
for /f "Tokens=5 Delims=. " %%v in ('ver') do if "%%v" LSS "5" goto :EOF
setlocal
for /f "Skip=2 Tokens=3" %%u in ('reg QUERY "HKCUControl PanelDesktop" /v UserPreferencesmask') do set upm=%%u
set first=%upm:~0,1%
if /i "%first%" LSS "8" goto :default
if /i "%first%" EQU "8" set first=0&goto uwrite
if /i "%first%" EQU "9" set first=1&goto uwrite
if /i "%first%" EQU "a" set first=2&goto uwrite
if /i "%first%" EQU "b" set first=3&goto uwrite
if /i "%first%" EQU "c" set first=4&goto uwrite
if /i "%first%" EQU "d" set first=5&goto uwrite
if /i "%first%" EQU "e" set first=6
:uwrite
set remain=%upm:~1,7%
set upm=%first%%remain%
REG ADD "HKCUControl PanelDesktop" /v UserPreferencesmask /t REG_BINARY /d %upm% /f
:default
for /f "Skip=2 Tokens=3" %%u in ('reg QUERY "HKU.DefaultControl Paneldesktop" /v UserPreferencesmask') do set upm=%%u
set first=%upm:~0,1%
if /i "%first%" LSS "8" goto :done
if /i "%first%" EQU "8" set first=0&goto dwrite
if /i "%first%" EQU "9" set first=1&goto dwrite
if /i "%first%" EQU "a" set first=2&goto dwrite
if /i "%first%" EQU "b" set first=3&goto dwrite
if /i "%first%" EQU "c" set first=4&goto dwrite
if /i "%first%" EQU "d" set first=5&goto dwrite
if /i "%first%" EQU "e" set first=6
:dwrite
set remain=%upm:~1,7%
set upm=%first%%remain%
REG ADD "HKU.DefaultControl PanelDesktop" /v UserPreferencesmask /t REG_BINARY /d %upm% /f
:done
endlocal



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like