[CONNECT C++] DgnElementSetTool: Query Elements in Reference Attachments

My query tool inherits from DgnElementSetTool.  It works fine for elements in the active model, but what should I do to enable it to locate elements in a reference?

Currently the tool shows a pop-up Element in reference that is not currently active or Element is in a ReadOnly ref.