RE: how to add control panel applet



Hi

1. create your own icon (MY_ICON) with the pb ressource editor.
2. load the icon with LoadIcon()
3. inside the CPL_NEWINQUIRE message replace the hIcon value of your
LPNEWCPLINFO struct with your icon
thats it.

for example
case CPL_NEWINQUIRE:
{
......
lpNewCplInfo->hIcon = LoadIcon (g_hInst,(LPCTSTR) MAKEINTRESOURCE(MY_ICON));
.....
}
f.e.
see http://msdn.microsoft.com/en-us/library/ms914264.aspx for an example and
replace the lpNewCplInfo->hIcon value with your loaded icon.

regards
sascha
.