Use the property IsCompressed to check if the current object is compressed.
property IsCompressed: Boolean;
Returns true if the current object is compressed.
ShellControls.TJamShellTreeNode