Invisibilize components in a collection |
Top Previous Next |
Here's an example of making a collection of work axes invisible. Use the Visible attribute:
void InvisibilizeWorkAxes (CComPtr<ObjectCollection> pWACollection) { for (int i = 1 ; i <= pWACollection->Count ; i++) { CComPtr<WorkAxisProxy> pProxy ; pWACollection->get_Item (i,(IDispatch**)&pProxy) ; pProxy->Visible = VARIANT_FALSE ; // or VARIANT_TRUE } }
|
Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)