uf_ui.h提供了很多操作selection handle的方法,获得该handle有两种方式,第一种就是你说的,另外一种就是UI Styler,所以,如果你想有复杂的应用,就只能你自己去考虑了。粘贴帮助如下:
The selection pointer is provided to the API programmer in the following ways:
For UI Styler dialogs, the API programmer can call UF_STYLER_ask_value from their callback.
For single and class selection dialogs, NX passes the selection pointer to the API programmer's initialization procedure . See UF_UI_select_with_single_dialog for details.
NX passes the selection pointer to the API programmer's filter procedure and selection callback.