Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I Clone Control Panel Applets

0 views
Skip to first unread message

gerrit

unread,
Sep 20, 2005, 7:19:09 PM9/20/05
to
I need to change the layout of the Date/Time Properties applet as it
does not fit on the screen resolution we have (320x240). Two
questions:

1- How do I clone it so I can modify it? (Clone Catalog Item is greyed
out in the OSDesign View)

2- How can I launch this applet from an application?

Thanks
Gerrit

Anthony Pellerin

unread,
Sep 21, 2005, 3:03:21 AM9/21/05
to

To clone a cpl, get the code and copy it to your BSP.You should be compiling
a DLL with CPL=1 in the SOURCES file.
As soon as you have a .cpl in your image (in the \Windows folder), it will
be enumerated in you control panel.
To launch the 13th applet, call
CreateProcess(_T("\\Windows\\ctlpnl.exe"),_T("cplmain.cpl,13"),NULL,NULL,FALSE,0,NULL,NULL,NULL,&ProcessInfo);

HTH
--
----------------------------------------------------------------
Anthony Pellerin
ADENEO (ADESET)
Windows Embedded Consultant
<apellerin AT adeneo DOT adetelgroup DOT com>
http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------


"gerrit" <goo...@gerritk.com> wrote in message
news:1127258349.4...@f14g2000cwb.googlegroups.com...

0 new messages