Contents page

GetPropInfo()


    USAGE

PropInfo = (struct PropInfo *) GetPropInfo(Window, GadgetID)

FUNCTION

Returns a Pointer to the PropInfo structure that belongs to the gadget indicated by the gadget ID. If there is a non-system gadget in the window's gadget list with this ID, and it is a gadget of type PROPGADGET, a pointer to this PropInfo structure will be returned. If not, NULL is returned. This is useful for manipulating PropInfo structures without having to have their names hard coded into the program.

INPUTS

Window = Pointer to the window the PropInfo structure resides in. GadgetID = Short integer ID of the gadget.

RESULT

PropInfo = Pointer to the requested PropInfo structure

SEE ALSO

SetPropInfo