Delphi Programming

  1. Home
  2. Computing & Technology
  3. Delphi Programming

Enable/Disable Desktop icons

By Zarko Gajic, About.com

Here's how to enable or disable all objects on a Desktop:

~~~~~~~~~~~~~~~~~~~~~~~~~
{Disable:}
EnableWindow(FindWindowEx(FindWindow
('Progman', nil), HWND(0), 'ShellDll_DefView', nil),
FALSE) ;

{Enable:}
EnableWindow( FindWindowEx( FindWindow
('Progman', nil), HWND(0), 'ShellDll_DefView', nil),
TRUE) ;

~~~~~~~~~~~~~~~~~~~~~~~~~

Delphi tips navigator:
» Get the Windows version
« Get the line number from a RichEdit

Zarko Gajic
Guide since 1998

Zarko Gajic
Delphi Programming Guide

Explore Delphi Programming

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Delphi Programming

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Coding Delphi Applications
  5. Delphi Tips and Tricks
  6. 2000 Delphi Tips
  7. Enable/Disable Desktop icons

©2009 About.com, a part of The New York Times Company.

All rights reserved.