SetItemState method allows you to set new file object state (hidden/visible) at the specified “hide list” index.
Parameters Â lItemIndex Â Â [in] A zero-based “hide list” index of the necessary item. Â pbState Â Â [in] The Boolean value, which contains the new file object’s state.
Return Values SetItemState method returns TRUE if new file object state was successfully assigned and FALSE otherwise.
Remarks Â pbState has TRUE value if file object is hidden and FALSE is file object is visible.
|// We want to set first item state value to false ( set “visible” item state) extern CHideMyFoldersAx m_ctrlHMFAx; m_ctrlHMFAx.SetItemState(0,FALSE);|