有关树型控件的缩进问题
请问各位高手,怎样去除树型控件的缩进,也就是要把树型控件的缩进设为0。
CTreeCtrl m_Tree;
m_Tree.SetIndent(0); 这就代码无效,系统自动设为最低限制,也就是16像素。
MSDN:
void SetIndent( UINT nIndent );
Parameters
nIndent
Width, in pixels, of the indentation. If nIndent is less than the system-defined minimum width, the new width is set to the system-defined minimum.
我想不让系统设定最小限制,应该怎么做?
(分不够再加)