未分类--Windows API--CPlApplet

原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 643166601,邮件[email protected]

 

Platform Builder for Microsoft Windows CE 5.0   

CPlApplet
This function is a library-defined callback function that serves as the entry point for a Control Panel application.
这个函数是一个在库中定义的回调函数为控制面板的入口点程序服务。
Syntax
LONG CPlApplet(
  HWND hwndCPl,
  UINT msg,
  LPARAM lParam1,
  LPARAM lParam2
);
Parameters
hwndCPl
[in] Handle to the main window of the controlling application.
处理控制应用程序的主窗体。
Use the hwndCPl parameter for other applications or windows that require a handle to a parent window.
使用hwndCPl参数为其他应用程序或窗口,需要一个处理到父窗口。
msg
[in] Message being sent to the Control Panel application.
消息被发送到控制面板应用程序。
lParam1
[in] Additional message-specific information.
附加指定消息信的信息。
lParam2
[in] Additional message-specific information
附加指定消息信的信息。
Return Values
The return value depends on the message.
这个返回值依赖消息。
Windows Mobile Remarks
The CPlApplet function is an application-defined callback function that serves as the entry point for a Control Panel application.
这个CPlApplet函数是一个在应用程序中定义的回调函数为控制面板的入口点程序服务。
The APPLET_PROC type defines a pointer to this callback function.
这个APPLET_PROC类型定义一个指针指向这个回调函数。
When the Control Panel starts, it loads all DLL files that have a .cpl file name extension (such as MyApplet.cpl) in the Windows folder.
当这个控制面板启动时,它加载所有的DLL文件它有.cpl扩展名的(例如MyApplet.cpl)在Windows文件夹中。
The Control Panel calls the CPlApplet function that was implemented and exported in each CPL file.
这个控制面板调用CPlApplet函数它实现并且导入每个CPL文件。
The CPlApplet function must properly handle any of the control panel messages that are sent to it programmatically or via calls from the Control Panel.
这个CPlApplet函数必须正确的处理任何一个控制面板消息,它是发送它的编程方式或通过调用从控制面板中。
If more than one Control Panel application is implemented in a .cpl file, a single CPlApplet function is used for all of the Control Panel applications.
如果有超过一个控制面板应用程序在一个.cpl文件中实现,一个单个的CPlApplet函数被使用为了所有的控制面板应用程序。
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Cpl.h.
Link Library: Developer implemented.

See Also
Standard Shell Functions | CPL_DBLCLK | CPL_EXIT | CPL_GETCOUNT | CPL_INIT | CPL_NEWINQUIRE | CPL_STOP

 


--------------------------------------------------------------------------------

Last updated on Wednesday, September 14, 2005

© 2005 Microsoft Corporation. All rights reserved.

你可能感兴趣的:(windows,api)