mouse_list_install

The mouse_list_install function initializes a mouse rectangle structure.

Syntax

mouse_list_install(PMOUSERECT rect, PGAUGEHDR gauge_header, PPIXPOINT size)

The mouse_list_install function has these parameters:

Parameter Description
PMOUSERECT rect Pointer to the mouse rectangle structure to initialize.
PGAUGEHDR gauge_header Pointer to the gauge header.
PPIXPOINT size Specifies the size of the gauge that the mouse rectangle structure belongs to.

Example

MOUSE_BEGIN(mouse_rect, HELPID_B737_FLAPS, 0, 0)

MOUSE_CHILD_EVENT(0, 0, 44, 85, CURSOR_DOWNARROR, MOUSE_LEFTSINGLE, KEY_FLAPS_DECR)

MOUSE_CHILD_EVENT( 44, 0, 44, 85, CURSOR_UPARROR, MOUSE_LEFTSINGLE, KEY_FLAPS_INCR)

MOUSE_END

void install_routine(HINSTANCE resource_file_handle)

{

element_list_install(list, resource_file_handle);

mouse_list_install(mouse_rect, &gauge_header,

&background.image_data.final->dim);

mouse_list_register(mouse_rect, &gauge_header);

}