|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| -
| Header File
| cpl.h
| Unicode
| No
| Platform Notes
| None
|
|
|
CPL_NEWINQUIRE
The CPL_NEWINQUIRE message is sent to the CPlApplet function of a Control Panel application to request information about a dialog
box that the application supports.
For better performance, most applications should ignore CPL_NEWINQUIRE and
process the CPL_INQUIRE message instead. The CPL_NEWINQUIRE message is useful only
for applications that need to change their icon or display strings based on
the state of the computer.
CPL_NEWINQUIRE
uAppNum = (UINT) lParam1; // application number
lpncpli = (LPNEWCPLINFO) lParam2; // structure for appl. info.
Parameters
uAppNum
Value of lParam1. Specifies the dialog box number. This number must be in the range zero
through one less than the value returned in response to the CPL_GETCOUNT message (CPL_GETCOUNT 1).
lpncpli
Value of lParam2. Specifies the address of a NEWCPLINFO structure. The Control Panel application should fill this structure with
information about the dialog box.
Return Values
If the CPlApplet function processes this message successfully, it should return zero.
Remarks
The Control Panel sends the CPL_NEWINQUIRE message once for each dialog box
supported by your application. The Control Panel also sends a CPL_INQUIRE message for each dialog box. These messages are sent immediately after the CPL_GETCOUNT message. However, the system does not guarantee the order in which the
CPL_INQUIRE and CPL_NEWINQUIRE messages are sent.
You can perform initialization for the dialog box when you receive
CPL_INQUIRE. If you must allocate memory, do so in response to the CPL_INIT message.
The CPL_NEWINQUIRE message was introduced in Windows version 3.1 as a
replacement for CPL_INQUIRE. However, CPL_INQUIRE is the preferred message for Windows
95 and Windows NT version 4.0. This is because CPL_NEWINQUIRE returns
information in a form that the system cannot cache. Consequently, applications that
process CPL_NEWINQUIRE must be loaded each time the Control Panel needs the
information, resulting in a significant reduction in performance.
The only applications that should use CPL_NEWINQUIRE are those that need to
change their icon or display strings based on the state of the computer. In this
case, your CPL_INQUIRE handler should specify the CPL_DYNAMIC_RES value for the idIcon, idName, or idInfo members of the CPLINFO structure, 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, allowing you to specify information based on the current
state of the computer. Of course, this is significantly slower than using cached
information.
See Also
CPL_GETCOUNT, CPL_INIT, CPL_INQUIRE, CPlApplet, CPLINFO, NEWCPLINFO
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|