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 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.
DownloadsDownload demo project - 32 KB
Download source - 46 KB