How can I change task bar settings such as Auto Hide?
AutoHide and other task bar settings are contained in the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Shell in a value called TBOpts. TBOpts is a DWORD bitfield containing four entries: #define MENUOPT_SHOWTIME 0x0001 #define MENUOPT_SHOWDATE 0x0002 #define MENUOPT_SHOWBANNER 0x0004 #define MENUOPT_AUTOHIDE 0x0008 Once you change the TBOpts value to show or hide various task bar settings you need to notify the task bar. The following: SendMessage(hTaskBarWnd, WM_COMMAND, 0x3EA, 0) Will notify the taskbar that changes were made and cause it to update accordingly.