It happen to a query from CP user, He wanted to know a way to check/uncheck all children , parent is checked/unchecked . It is WinSDK. In dialog procedure WM_NOTIFY needs to be handled. Again a custom message need to be defined for parent dialog, which checks children of tree item, given its parent.
In parent dialog procedure code goes like this,
Few days back, a poster ask a easy way to convert CString array to CStringArray. Though , I feel this is wiered requirement. Ofcourse, he was concerned about efficiency.And wanted to avoid for loop.CStringArray has no c'tor designed to do this. But, what if we extend the class ? I propsed this solution,
class CStringArrayEx: public CStringArray
CStringArrayEx::CStringArrayEx(CString* pSrc,size_t size):CStringArray()
SetSize(size); //set array size
CopyElements(m_pData, pSrc,size);//copy element