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

Hide another application

By , About.com Guide

It is sometimes usfull to hide (from taskbar and desktop) another application, expecially when that app was started from your program.

~~~~~~~~~~~~~~~~~~~~~~~~~
{
The next code will hide Win Calculator.
}
var cn: pchar;

cn := 'SciCalc'; //class name
ShowWindow(FindWindow(cn,nil), SW_HIDE)

{
Here are some more common
applications class names:

Windows Accessories_ Class________________
Calculator "SciCalc"
Notepad "Nopetad"
Paint "MSPaintApp"
WordPad "WordPadClass"

Microsoft Office____ Class________________
Word 2/6/7 "OpusApp"
Excel 4/5/7 "XLMAIN"
PowerPoint 4 "PPApplicationClass"
PowerPoint 7 "PP7FrameClass"

Misc_______________ Class________________
ToolBook "ToolBook"
Windows Help "MS_WINDOC"
WinHelp32 Topic "MS_WINDOC_SECONDARY"
Explore (Win95) "ExploreWClass"
}

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

Delphi tips navigator:
» Show *any* graphics as Glyph on a SpeedButton
« Drag from ListBox to Edit

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. 2001 Delphi Tips
  7. Hide another application

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

All rights reserved.