unsigned short get_class_part(handle window,
                              int Index)

This function obtains a part in class memory at a given offset.


handle window

The handle of the window of the class.

int index

The 0-based index into class memory of the part.


unsigned short

The part at the given offset or zero if an error occurred.


The 0-based byte index into the extra class memory ranges up to the number of bytes of extra memory minus 2. Extra class memory is reserved when registering a class.

Apart from valid positive values, the negative index values listed in the following table may be used.

class_offset::atom An atom value that uniquely identifies the window class. This is the same atom that is returned when registering the class.
class_offset::small_icon The handle of the small icon of the window.