The mode parameter how new objects are installed. Mode RSRC_XTYPE install new type for objects having an extended type. Avalaible extended types are describe in section Extended types. There is a second mode, RSRC_X3D, which installs new object types with a 3D look for all objects. The goal of this mode is to allow your dialog boxes to have the same aspect with MagiC, Naes, TOS or any other GEM system. Addressed objects are buttons and boxes without extended types. And off course, these two modes can be cumulated (mode RSRC_XALL).
To fix the objects in the internal resource, the trindex parameter must set to NULL and the trindex parameter is not used. To fix an external resource, the trindex parameter should be filled with the address of object trees in the resource. This address is supplied with the RSH file created by your resource editor. The RSH file must be include in your source code with an #include directive. The ntree value is also supplied with the RSH file.
When the application finish, extended object should be freed by a call to RsrcXtype() with mode 0.