Creating and Switching to Different Desktops



Click here for a larger image.

Environment: VC6, Win2k, WinXP

After working with systems such as 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 (such as Stardocks tools and NVidia tools) are limited by one very important feature: If an application on an active screen is blocking, the whole switch is impossible. Son I wrote a little program to handle virtual desktops.

There is also a configuration dialog, used to configure the default shell of an desktop. Normally, this is the explorer.exe, but you can also define other programs. Just select the executable and possible parameters used on starting up the shell process.

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.

The main class handling all the related stuff is encapsulated in CMFDeskTopHelper. Also, there are some helper classes for:

  • Creating a single input window
  • Processing the Registry
  • Parsing input keys, and
  • Getting hotkey values

Downloads

Download demo project binaries - 28 Kb
Download source - 73 Kb


Comments

  • New Version

    Posted by MikeTheDwarf on 05/27/2008 11:52am

    Hi,
    for a brand new, full featured version, visit
    SoftwareHive[^]

    This page tries to give something back to the famous CodeGuru site!

    Reply
  • Is there a way to remove some of the desktop added?

    Posted by Legacy on 12/07/2003 12:00am

    Originally posted by: Shane L

    Hi,
    I would like to say this is a great tool! Why Microsoft down even provide it as part of the powertoy is a mystery!
    Thank for sharing it.

    Is there a way to remove some of the desktop added?

    Again thanks!

    Reply
  • compiling errors

    Posted by Legacy on 11/13/2003 12:00am

    Originally posted by: Hermann Fischer

    Good work, but is it possible that you forgot some files? Many constants like VK_OEM_... are not defined !?

    • Uh...

      Posted by dogbear on 10/23/2005 07:54am

      We heard you the first time... Huh?

      Reply
    • Um...

      Posted by dogbear on 10/23/2005 07:53am

      Huh?

      Reply
    Reply
  • Not seen like this before!!!

    Posted by Legacy on 11/12/2003 12:00am

    Originally posted by: Jayendranath

    Not seen like this before!!!
    

    Reply
  • Great!

    Posted by Legacy on 11/11/2003 12:00am

    Originally posted by: benben

    Great!

    Reply
  • Hahaha, greate!!!!!!!!!!!

    Posted by Legacy on 11/10/2003 12:00am

    Originally posted by: Pham Son Thuy

    Hahaha, greate!!!!!!!!!!!

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: August 14, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Data protection has long been considered "overhead" by many organizations in the past, many chalking it up to an insurance policy or an extended warranty you may never use. The realities of today make data protection a must-have, as we live in a data driven society. The digital assets we create, share, and collaborate with others on must be managed and protected for many purposes. Check out this upcoming eSeminar and join eVault Chief Technology …

  • Event Date: April 15, 2014 The ability to effectively set sales goals, assign quotas and territories, bring new people on board and quickly make adjustments to the sales force is often crucial to success--and to the field experience! But for sales operations leaders, managing the administrative processes, systems, data and various departments to get it all right can often be difficult, inefficient and manually intensive. Register for this webinar and learn how you can: Align sales goals, quotas and …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds