SetItemState method

SetItemState method allows you to set new file object state (hidden/visible) at the specified “hide list” index.

BOOL SetItemState(
LONG lItemIndex,
BOOL bNewState
);

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.


Code Example

// We want to set first item state value to false ( set “visible” item state) extern CHideMyFoldersAx m_ctrlHMFAx; m_ctrlHMFAx.SetItemState(0,FALSE);