Click here to Skip to main content
Licence CPOL
First Posted 11 Jun 2002
Views 126,963
Downloads 2,462
Bookmarked 47 times

Taskbar Sorter Utility

By Paul Vickery | 11 Jun 2002
Utility to change order of icons in taskbar

1

2
2 votes, 10.5%
3
2 votes, 10.5%
4
15 votes, 78.9%
5
4.79/5 - 28 votes
1 removed
μ 4.44, σa 0.96 [?]

Introduction

This utility allows you to change the order of items on your taskbar, by dragging them into position in a list.

Taskbar Sorter

The list shows all of your visible top-level windows. To move a window you simply drag the window's title into the order you wish the windows to appear, and click the Sort button.

To exit the utility, click on the Close button.

How it works

The application enumerates windows which are top-level (ie have no owner), and do not explicitly prevent themselves appearing in the taskbar. It adds each of the windows' titles to a drag list box (CDragListBox), along with the icon for the app. The user can then re-order the windows. When the user clicks the Sort button, each window is hidden using ShowWindow(SW_HIDE) and then re-shown (ShowWindow(SW_SHOW)) in the order of the list - top to bottom. This has the effect of the window being removed from the taskbar and then being re-added at the right-hand side.

Known limitations

Unfortunately there doesn't appear to be any way of interrogating the taskbar to determine, firstly which windows appear there, and secondly in what order they currently appear. This means that each time the utility is run the user needs to re-order each window from scratch.

That's all there is to it - have fun!

License

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

About the Author

Paul Vickery

Software Developer (Senior)

United Kingdom United Kingdom

Member
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.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 3 PinmemberSercanOzdemir9:02 7 Dec '11  
GeneralMy vote of 5 PinmemberPepsibot6:40 9 Sep '10  
GeneralDont work with "Group similar taskbar buttons" enabled. [modified] PinmemberAlejandro Pardo10:05 30 Dec '08  
AnswerRe: Dont work with "Group similar taskbar buttons" enabled. PinmemberPaul S. Vickery1:56 6 Jan '09  
GeneralRe: Dont work with "Group similar taskbar buttons" enabled. PinmemberAlejandro Pardo2:34 6 Jan '09  
Question.Net Code Pinmemberplury6:16 19 Feb '07  
GeneralDrag and Drop buttons on Taskbar and save order PinmemberThe Code Machine22:14 27 Jan '06  
GeneralRe: Drag and Drop buttons on Taskbar and save order PinmemberSa6ry8:06 3 Apr '06  
GeneralSave the Order PinmemberHerrDamit4:35 8 Aug '04  
GeneralRe: Save the Order Pinmemberkpatel1089:19 29 Oct '04  
GeneralRe: Save the Order PinmemberDTY9:45 15 Aug '05  
GeneralRe: Save the Order PinmemberDTY7:08 22 Jun '06  
GeneralWindows XP Pinmemberwayside7:43 28 Jul '04  
GeneralIcon Color Improvement PinmemberAtlantys20:27 16 Jun '02  
GeneralJames would be tickled by this PinmemberNish - Native CPian20:05 12 Jun '02  
GeneralRe: James would be tickled by this PinmemberPaul S. Vickery23:31 12 Jun '02  
GeneralRe: James would be tickled by this PinmemberNish - Native CPian0:46 13 Jun '02  
GeneralPC Mag has similar utility PinmemberAnonymous15:31 12 Jun '02  
GeneralRe: PC Mag has similar utility PinmemberPaul S. Vickery23:34 12 Jun '02  
GeneralRe: PC Mag has similar utility Pinmembervikrant kpr4:56 13 Jul '07  
GeneralRe: PC Mag has similar utility PinmemberPhilippe Lhoste1:42 24 Jun '02  
GeneralRe: PC Mag has similar utility PinmemberSynetech17:34 12 Aug '06  
GeneralCool PinmemberRama Krishna4:24 12 Jun '02  
GeneralRe: Cool PinmemberAtlantys21:21 12 Jun '02  
GeneralRe: Cool PinmemberPaul S. Vickery23:37 12 Jun '02  

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

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

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120210.1 | Last Updated 12 Jun 2002
Article Copyright 2002 by Paul Vickery
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid