You are here:About>Computing & Technology>Delphi Programming> Coding Delphi Applications> Delphi Tips and Tricks> 2000 Delphi Tips> Enable/Disable Desktop icons
About.comDelphi Programming
Newsletters & RSSEmail to a friendSubmit to Digg

Enable/Disable Desktop icons

From Zarko Gajic,
Your Guide to Delphi Programming.
FREE Newsletter. Sign Up Now!
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

 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.