visual c++ - How to force CMFCPropertyGridCtrl to refresh after adding an item? -
i add item cmfcpropertygridctrl, new item not show if click cmfcpropertygridctrl.
now have indirect solution show new item calling expandall()
, don't want expand have collapsed.
is there way show new item gracefully ?
after cmfcpropertygridproperty.addsubitem()
call, new item show following 2 calls:
yourgridctrl.adjustlayout(); yourgridctrl.redrawwindow();
hope helps !
Comments
Post a Comment