Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
PtGenTreeGetSelIndexes

PtGenTreeGetSelIndexes

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

PtGenTreeGetSelIndexes()

Get the indexes of the selected items

Synopsis:

unsigned short *PtGenTreeGetSelIndexes( 
                    PtWidget_t *widget, 
                    unsigned short *buffer );

Description:

This function fills a buffer with indexes of all the selected items in the widget. The first item in the widget has an index of 1, not 0.

If buffer is NULL, the function allocates a buffer using malloc(), and terminates the buffer with a zero.

If buffer isn't NULL, the function adds a 0 to the end only if there are no selected items.

Returns:

A pointer to the buffer containing the indexes.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtGenTree