RE: how to add control panel applet
- From: Saga <Saga@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 5 Sep 2008 04:11:01 -0700
Hi,
lpNewCplInfo is a variable of LPNEWCPLINFO, given as lParam2 parameter of
the CPlApplet function of you applet. The hIcon member is the Icon displayed
in the control panel for your applet. If you press this icon, your dialog
will be displayed.
Or do you wan't to display an Icon in your dialog and use it as button?
In that case, you can add an picture in your dialog (you can set the Type to
Icon in the porperties dialog) and wait for mouse click message. I belive
you can also add an button and set an icon as background image, see MSDN for
button messages to control buttons. Or you create an application-defined
window control see MSDN too.
To open a custom dialog use DialogBox() function
regards
sascha
"Gul" wrote:
.
"Saga" wrote:
Hi
Thanks for reply.
I did that changing u said as:
case CPL_NEWINQUIRE:
{
lpNewCplInfo->hIcon = LoadIcon (g_hInst,(LPCTSTR)
MAKEINTRESOURCE(IDI_ICON_ABOUT));
return GetCplInfo(lParam1, (NEWCPLINFO*)lParam2);
}
but it still doesnt worked, it gave error like lpNewCplInfo undeclared
identifier..
Please help me with some detailed steps that
1. How to show icon in cntrl panel.
2. Then how to envoke some .exe or show some resource dialog
- References:
- how to add control panel applet
- From: Gul
- RE: how to add control panel applet
- From: Saga
- RE: how to add control panel applet
- From: Gul
- how to add control panel applet
- Prev by Date: Pindriver (Camera)
- Next by Date: RE: Advanced debugging an image
- Previous by thread: RE: how to add control panel applet
- Next by thread: Re: how to add control panel applet
- Index(es):