#include <winstl/control_panel/applet_module.hpp>
Instances of this class are managed by the applet_module class, and available by its subscript operator. For example, the following code retrieves a reference to the first applet and invokes it:
winstl::applet_module &module = . . . ; winstl::applet &applet0 = module[0]; applet0.open();
Member Types | |
typedef applet | class_type |
The type of this class. | |
typedef stlsoft::basic_simple_string < TCHAR > | string_type |
The string type. | |
typedef size_t | index_type |
The index type. | |
Construction | |
~applet () throw () | |
Releases any resources associated with the instance. | |
Public Member Functions | |
Operations | |
void | open (HWND hwnd=NULL) |
Invokes the applet, with the given window, if specified, as the dialog parent. | |
void | open (HWND hwnd, TCHAR const *arguments) |
Invokes the applet passing a parameter string, with the given window, if specified, as the dialog parent. | |
Attributes | |
index_type | get_index () const |
The index of the applet in the containing applet module. | |
string_type | get_name () const |
The applet name. | |
string_type | get_description () const |
The description of the applet. | |
HICON | get_icon () const |
The icon associated with the applet. | |
LONG | get_data () const |
The user-date, if any, associated with the applet. |
typedef applet class_type |
The type of this class.
typedef stlsoft:: basic_simple_string<TCHAR> string_type |
The string type.
typedef size_t index_type |
The index type.
~applet | ( | ) | throw () |
Releases any resources associated with the instance.
void open | ( | HWND | hwnd = NULL |
) |
void open | ( | HWND | hwnd, | |
TCHAR const * | arguments | |||
) |
index_type get_index | ( | ) | const |
string_type get_name | ( | ) | const |
The applet name.
string_type get_description | ( | ) | const |
The description of the applet.
HICON get_icon | ( | ) | const |
The icon associated with the applet.
LONG get_data | ( | ) | const |
The user-date, if any, associated with the applet.