Demo Control Panel Application

Environment: Win 9x/NT/2000 and Visual C++ 6

While not being very fancy, this application (called ControlPanel) is a small demonstration of how the real Windows Control Panel functions.

When the Control Panel is launched, it looks for .cpl files in the Windows system folder. The .cpl files (called applets) are simple DLLs that export the CPlApplet function. For each applet found, the Control Panel loads that DLL with the ::LoadLibrary function call and then uses the GetProcAddress function to realize a pointer to the CPlApplet function. For each applet, it calls the CPlApplet function by passing it different messages such as CPL_INIT, CPL_INQUIRE etc. You can get help about different messages in the online help of MSDN.

When the Control Panel calls the CPlApplet function with CPL_INQUIRE message, the .cpl file returns a CPLINFO structure which holds information about that perticular applet such as its name, icon, info tip etc. When the Control Panel applet is double-clicked by the user, the CPlApplet function is called with the CPL_DBLCLK value. At this point, the applet generally displays a dialog from which the user can interact with the applet.

Downloads

Download demo project - 32 KB
Download source - 46 KB


Comments

  • hardware control panel

    Posted by RAJESH KORI on 11/08/2012 10:36pm

    Dear sir/madam Since i shall be starting the production unit of A/D conversion plus Optical cable in mp khajuraho. please give the suggestion about lauched it. Thanking you

    Reply
  • Local Area Connection

    Posted by Legacy on 02/24/2003 12:00am

    Originally posted by: Rens

    HI

    Is there also anyway to go direct to the Local Area Connection in windows XP? I don't want to go first to the network properties. I want to do this with C++ Builder.

    Reply
  • How i can cheng sound card from control panel in vb or vc++?

    Posted by Legacy on 02/18/2003 12:00am

    Originally posted by: majid

    How i can cheng sound card from control panel in vb or vc++
    when i want record multi sound form multi sound card whit mic in program i think chang sound card from control panel
    but i dont do it. can you help me.

    thank you.

    Reply
  • how to make cd rom drivers available in dos without cd rom drivers?

    Posted by Legacy on 12/22/2001 12:00am

    Originally posted by: Auleear Mohammad Yasir

    from your startup disk copy the following files to c:
    aspicd.sys
    btcdrom.sys
    oakcdrom.sys

    then edit config.sys and add this:
    DEVICE=Oakcdrom.sys /d:mscd001
    DEVICE=Btcdrom.sys /d:mscd001
    DEVICE=Aspicd.sys /d:mscd001

    save it

    then edit autoexec.bat and add this:
    mscdex.exe
    mscdex /d:mscd001
    then save it
    restart your computer then go on pressin f8
    then select command prompt only

    the drivers for your cd rom will be enabled

    searching tips for installing linux?

    email me at yasir_auleear@yahoo.com

    Reply
  • How can I make harddisk bootable throgth this controlpanal program?

    Posted by Legacy on 11/14/2001 12:00am

    Originally posted by: yanny

    I want to make a program that can make hard disk bootable,as do in making startup floppy disk in control panal.How "add/delete program" in control panal make this?

    Reply
  • My changed email address:

    Posted by Legacy on 05/25/2001 12:00am

    Originally posted by: Farooque Khan

    Hi,

    My email address is farooque-khan@usa.net.
    The given farooquek@concretioindia.com is not valid.
    Thank You.

    Farooque Khan

    Reply
  • Control Panel

    Posted by Legacy on 05/15/2001 12:00am

    Originally posted by: son

    Thanks for your application, i think it's really helpful. I also have a question to ask. Is there anyway that I can invoke one of the item within the pop up dialog after I double click on the one of the control panel item, for example "Printer" item. Can I programmatically execute my "LaserJet printer" without double click on the item?

    thanks

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

Top White Papers and Webcasts

  • This paper examines the difficulties and pain points that organizations encounter as they seek to straddle the conflicting pressures of ever increasing email volumes on one hand, and the need for faster, more flexible accessibility on the other. It also explores what practices and policies are currently in use when it comes to archiving emails, and the ways in which businesses can improve practices in this crucial area. There are, for example, options available which can bring email archiving up-to-date, with …

  • According to a 2014 Javelin Strategy & Research Study, there is a new victim of fraud every two seconds – and that's just in the U.S. With identity theft and consumer fraud rising, and more frequent and sizable data breaches in the news, financial institutions need to work harder than ever to protect their customers and their business. Download this white paper to learn how you can use multi-channel communications to minimize the costs of fraud while also increasing customer loyalty.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date