Click here to Skip to main content
15,881,173 members
Articles / Desktop Programming / MFC
Article

HideIt

Rate me:
Please Sign up or sign in to vote.
4.54/5 (21 votes)
24 Feb 2003CPOL1 min read 102.6K   2.8K   49   22
Utility to hide or unhide top-level windows

Introduction

Sometimes I find I want to hide an application that is running in the background to stop me closing it, and to stop it appearing on the task list. How many times have you started a lengthy download, left it running in the background, and then closed the application accidentally while 'cleaning up' your desktop? This utility allows you to hide, and unhide any 'top level' windows (that is, any windows whose parent is the desktop).

On running the utility, an icon will appear in your taskbar. Clicking or right-clicking on it will produce a menu, similar to the following:

HideIt menu

This menu has two submenus that will list all of your top-level windows. Any window that is visible will be shown on the 'Hide Window' menu, while any window that is hidden will appear on the 'Show Window' menu. Clicking on a window name in either menu will toggle its visible state.

Normally the Windows system uses many hidden windows for such purposes as DDE message exchange etc. To avoid windows being listed in either of the lists you can add them to an 'exclusion' list. Double-clicking on the taskbar icon, or clicking and then clicking options, will open a dialog with a picker list allowing you to add or remove windows from the exclusion list. This list is then saved to your profile and used each time you run the utility. To exit the utility, click on Exit on the menu. That's all there is to it - have fun!

History

  • Version 1 - 19 Feb 2003

    • First version

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
Originally from an electronics background, I moved into software in 1996, partly as a result of being made redundant, and partly because I was very much enjoying the small amount of coding (in-at-the-deep-end-C) that I had been doing!

I swiftly moved from C to C++, and learned MFC, and then went on to real-time C on Unix. After this I moved to the company for which I currently work, which specialises in Configuration Management software, and currently program mainly in C/C++, for Windows. I have been gradually moving their legacy C code over to use C++ (with STL, MFC, ATL, and WTL). I have pulled in other technologies (Java, C#, VB, COM, SOAP) where appropriate, especially when integrating with third-party products.

In addition to that, I have overseen the technical side of the company website (ASP, VBScript, JavaScript, HTML, CSS), and have also worked closely with colleagues working on other products (Web-based, C#, ASP.NET, SQL, etc).

For developing, I mainly use Visual Studio 2010, along with an in-house-designed editor based on Andrei Stcherbatchenko's syntax parsing classes, and various (mostly freeware) tools. For website design, I use Dreaweaver CS3.

When not developing software, I enjoy listening to and playing music, playing electric and acoustic guitars and mandolin.

Comments and Discussions

 
GeneralVery good Pin
itpig4-Jul-07 16:29
itpig4-Jul-07 16:29 
Questionand to hide icons in the systray?? Pin
jojo291185-Jun-05 1:20
jojo291185-Jun-05 1:20 
AnswerRe: and to hide icons in the systray?? Pin
Paul Vickery5-Jul-05 2:09
professionalPaul Vickery5-Jul-05 2:09 
GeneralNice, but crashes at times Pin
dhickman17-Jul-03 10:39
dhickman17-Jul-03 10:39 
GeneralRe: Nice, but crashes at times Pin
Paul Vickery30-Nov-03 22:40
professionalPaul Vickery30-Nov-03 22:40 
Questionwhat can be done with Windows own pop up boxes? Pin
mr ree drink30-Mar-03 11:21
sussmr ree drink30-Mar-03 11:21 
GeneralGood work. I need an advice Pin
Radu Vaileanu28-Feb-03 0:51
Radu Vaileanu28-Feb-03 0:51 
GeneralHi Pin
Vinod Sharma27-Feb-03 1:27
Vinod Sharma27-Feb-03 1:27 
GeneralAnother method... Pin
Kevin Cotter26-Feb-03 2:48
Kevin Cotter26-Feb-03 2:48 
GeneralOne more similar product Pin
Vadim Melnik26-Feb-03 0:55
Vadim Melnik26-Feb-03 0:55 
GeneralThe Wonderful Icon Pin
Dandy Cheung24-Feb-03 16:11
Dandy Cheung24-Feb-03 16:11 
GeneralRe: The Wonderful Icon Pin
Andreas Saurwein25-Feb-03 4:49
Andreas Saurwein25-Feb-03 4:49 
GeneralClickety, but.... Pin
Christian Graus25-Feb-03 11:28
protectorChristian Graus25-Feb-03 11:28 
dandycheung wrote:
http://thewonderfulicon.com/[^]

Either way, I don't think that detracts from the article. I note the 'wonderful' icon has no source provided, for example.

Christian

NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
GeneralRe: Clickety, but.... Pin
Dandy Cheung25-Feb-03 15:11
Dandy Cheung25-Feb-03 15:11 
GeneralSome suggestions Pin
Andreas Saurwein19-Feb-03 23:44
Andreas Saurwein19-Feb-03 23:44 
GeneralRe: Some suggestions Pin
P3452626-Feb-03 9:58
P3452626-Feb-03 9:58 
GeneralRe: Some suggestions Pin
Andreas Saurwein26-Feb-03 12:32
Andreas Saurwein26-Feb-03 12:32 
GeneralRe: Some suggestions Pin
Hans J. Schroeder9-Mar-03 3:48
Hans J. Schroeder9-Mar-03 3:48 
GeneralRe: Some suggestions Pin
P345269-Mar-03 4:53
P345269-Mar-03 4:53 
GeneralGood idea Pin
Yi Yang19-Feb-03 21:56
Yi Yang19-Feb-03 21:56 
GeneralRe: Good idea Pin
Mr. Ree (Mystery) Drink30-Mar-03 11:09
sussMr. Ree (Mystery) Drink30-Mar-03 11:09 
GeneralInteresting, but... Pin
Hans Dietrich19-Feb-03 1:51
mentorHans Dietrich19-Feb-03 1:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.