Click here to Skip to main content
11,930,222 members (38,618 online)
Click here to Skip to main content
Add your own
alternative version


11 bookmarked

"Taskbar and Start Menu Properties Dialog" showing made easy

, 19 Sep 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
This article shows you ways to run Control Panel applets from VC++, even those that don't have a cpl extension file.

Sample Image - taskbarProperties.jpg


In one of the newsgroups, a guy asked about how to show the Taskbar and Start Menu properties dialog in VC++. I am going to show here the ways in which several different Control Panel applets can be run from VC++.

Running from Run box

Running an applet from the "Run" box is easy' just type "control desk.cpl" and press OK. It will show you the Desktop properties dialog box.

Running from VC++

Running an applet from your code is also easy:

ShellExecute( this->m_hWnd, NULL, "desk.cpl", NULL, NULL, 0);

Then what is the problem

The problem with showing the "Taskbar and Start Menu Properties" applet is this that you can't find a "cpl" file which shows this dialog.


For help, I searched MSDN which says "you can show this dialog with any scripting language". But what about VC++? Here is how to show this dialog the IDispatch way.

CString ss = ("TrayProperties");
BSTR szMember = ss.AllocSysString();
DISPID dispid;
COleDispatchDriver disp;
disp.InvokeHelper(dispid, DISPATCH_METHOD, NULL,NULL,NULL); 
SysFreeString( szMember);

Never forget to initialize and uninitialize COM.


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


About the Author

tanvon malik
Pakistan Pakistan
tanvon malik ( real name Tanveer Ahmad )I am a CNC Programmer, cnc setter, cnc operator. want to know about me visit my blog.
CNC Programming Blog

Reach Me
cnc blog | facebook | twitter | linkedin | flickr | google+

I been in Switzerland MAG former +FMS+ for CNC training.

Most interesting technologies I like COM MFC DirectShow such as filter development. I am from Pakistan.
Have worked on projects mostly related video capturing, video data processing and real time object tracking on videos. For these I have worked on projects which use "Open CV Library". Which is mostly used for capturing data and its processing.

my vc++ blog tanvon++
my blog about DirectShow in my national language URDU
and below is the place where we discuss DirectShow and VC++

You may also be interested in...

Comments and Discussions

GeneralOr you can use this Pin
swarup22-Jun-07 11:14
memberswarup22-Jun-07 11:14 
GeneralDisabling start menu Pin
w_kokie14-Mar-07 0:49
memberw_kokie14-Mar-07 0:49 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.151126.1 | Last Updated 19 Sep 2006
Article Copyright 2006 by tanvon malik
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid