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

Enable/Disable Desktop icons

By , About.com Guide

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

Explore Delphi Programming
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  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.