Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Switch to and create new desktops under Win2K, WinXP

0.00/5 (No votes)
31 Oct 2003 1  
Description and sample program on how to switch to and create new desktops under Windows2K and WindowsXP systems.

Sample Image - Desktop_Switcher.jpg

Introduction

After working with systems like Linux, I was surprised about the missing feature of virtual desktops under Windows systems.

Nevertheless they ARE supported by MS, but there is currently no tool to work with them. All tools (like Stardocks tools, NVidia tools) are limited by one very important feature: if an application on an active screen is blocking, the whole switch is impossible. So I wrote a little program to handle virtual desktops. There is also a configuration dialog, used to configure the default shell of a desktop. Normally this is the explorer.exe, but you can also define other programs. Just select the executable and possible parameters used on startup of the shell process.

The main class handling all the related stuff is encapsulated in CMFDeskTopHelper.

Also, there are some helper classes for:

  • creating single input window,
  • processing the registry,
  • parsing input keys and
  • getting hotkey values.

Comment

The sources are not well documented (and not completely new, the Platform SDK also provides a similar program, btw), and also full of crappy code. But you can use it as a base code to develop your own application.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here