CPLINFO Structure
CPLINFO Structure

Contains resource information and an application-defined value for a dialog box supported by a Control Panel application. The CPlApplet function of the Control Panel application returns this information to the Control Panel in response to a CPL_INQUIRE message.

Syntax

typedef struct tagCPLINFO {
    int idIcon;
    int idName;
    int idInfo;
    LONG_PTR lpData;
} CPLINFO;

Members

idIcon
The resource identifier of the icon that represents the dialog box.
idName
The resource identifier of the string containing the short name for the dialog box. This name is intended to be displayed below the icon.
idInfo
The resource identifier of the string containing the description for the dialog box that is intended to be displayed when the application icon is selected.
lpData
A pointer to data defined by the application. When the Control Panel sends the CPL_DBLCLK and CPL_STOP messages, it passes this value back to your application.

Remarks

If the icon or display strings of the dialog box can change based on the state of the computer, you can specify the CPL_DYNAMIC_RES value for the idIcon, idName, or idInfo members rather than specifying a valid resource identifier. This causes the Control Panel to send the CPL_NEWINQUIRE message each time it needs the icon and display strings. Using this technique is significantly slower, however, because the Control Panel will need to load your application each time it sends the CPL_NEWINQUIRE message.

Structure Information

Headercpl.h
Minimum operating systems Windows NT 3.1, Windows 95
© 2009 Microsoft Corporation. Reservados todos los derechos.   Temas legales | Marcas Registradas | Declaración de privacidad
Page view tracker
Evalúe la versión ligera de la biblioteca
x
La versión ligera está basada en ScriptFree (ancho de banda bajo) y se han añadido características que nos han solicitado, como un cuadro de búsqueda y la selección del lenguaje de código predeterminado.
¿Le gusta el cuadro de búsqueda?
¿Le gustan los bloques de código por fichas?
¿En qué medida considera útil este tema?
Díganos algo más.
Gracias
x
Nos está ayudando a mejorar MSDN Online.
Comentarios
Cambiar vista
Clásica
Ligera
ScriptFree
Cambiar vista