Click here to Skip to main content
Licence CPOL
First Posted 31 Oct 2003
Views 83,138
Bookmarked 63 times

Switch to and create new desktops under Win2K, WinXP

By | 31 Oct 2003 | Article
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

MikeTheDwarf

Business Analyst

Austria Austria

Member



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
GeneralNew version PinmemberMikeTheDwarf8:27 23 May '08  
QuestionAbout Change Desktop --help? Pinmemberanti_ftn16:17 16 Dec '04  
AnswerRe: About Change Desktop --help? PinmemberMikeTheDwarf20:50 16 Dec '04  
AnswerRe: About Change Desktop --help? PinmemberMikeTheDwarf8:46 14 Feb '09  
QuestionHow to add hot-key to default desktop Pinmemberu852650519:01 4 Dec '03  
AnswerRe: How to add hot-key to default desktop PinmemberMikeTheDwarf20:34 15 Nov '04  
GeneralMy system halt after opening Acrobat Reader in different desktop PinsussAnonymous22:19 2 Dec '03  
GeneralRe: My system halt after opening Acrobat Reader in different desktop PinmemberMikeTheDwarf22:03 3 Dec '03  
GeneralYou need to go for... PinmemberDaniel Turini2:48 6 Nov '03  
QuestionUser and desktop? Pinmembervaltech2:15 6 Nov '03  
Generalwhat's about deleting Pinmembercaptain-blaubaer19:09 4 Nov '03  
GeneralRe: what's about deleting Pinmemberalpu19:34 4 Nov '03  
GeneralRe: what's about deleting PinmemberMikeTheDwarf20:35 4 Nov '03  
GeneralRe: what's about deleting Pinmembercaptain-blaubaer2:56 5 Nov '03  
GeneralRe: what's about deleting PinmemberMikeTheDwarf3:13 5 Nov '03  
Generalhope you're aware that... Pinmembergaamoa20:56 1 Nov '03  
GeneralRe: hope you're aware that... PinmemberMikeTheDwarf1:53 2 Nov '03  
GeneralRe: hope you're aware that... PinmemberBlake Coverett4:53 2 Nov '03  
GeneralRe: hope you're aware that... Pinmembervaltech2:21 6 Nov '03  
GeneralWindows explorer in new desktop Pinmemberrromerot14:58 1 Nov '03  
GeneralRe: Windows explorer in new desktop PinmemberBlake Coverett15:28 1 Nov '03  
GeneralVarious Notes PinmemberBlake Coverett9:23 1 Nov '03  
GeneralRe: Various Notes PinmemberMikeTheDwarf1:52 2 Nov '03  
GeneralRe: Various Notes PinmemberMikeTheDwarf1:27 7 Apr '09  
GeneralDoes Not Build PinmemberBill Gates Antimatter Particle7:20 1 Nov '03  

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.120517.1 | Last Updated 1 Nov 2003
Article Copyright 2003 by MikeTheDwarf
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid