NX secondary development -Block UI C ++ interface List Box (list box) controls access to (continue to add)

1  obtains the current selection
 2  // list box control 
. 3 PropertyList ExpressionListProperties * = list_box0-> GetProperties ();
 . 4 STD :: Vector <NXOpen :: NXString> listStrings = ExpressionListProperties-> GetStrings ( " the ListItems " );
 . 5 STD :: the Vector < int > index = ExpressionListProperties-> GetIntegerVector ( " SelectedItems " );
 6  the Delete ExpressionListProperties;
 7  
8  this method before and I will not, my former colleague Liu workers told me.
9 In this sense thank Liu workers.

 

Guess you like

Origin www.cnblogs.com/nxopen2018/p/12305970.html