[About MFC]How to to hide the border of CTreeCtrl's CEdit control?
Please give me a way to hide the border of CTreeCtrl's CEdit control (While editing the text of tree view's item, the edit control has a border)
I really want to remove the border!
Thanks!
Maybe you could use the tree's "GetEditCtrl()" function like this:
I cannot guarantee that that works, but it should. I don't remember right off hand if "GetEditCtrl" is a member function of "CTreeCtrl", but it's similar.
Hope this helps! =)
BTW, if it doesn't work, try adding "RedrawWindow()" or "UpdateWindow()" on the "treeCtrl". =)
CEdit *pEditCtrl = treeCtrl.GetEditCtrl();pEditCtrl->ModifyStyle(WS_BORDER, NULL);
I cannot guarantee that that works, but it should. I don't remember right off hand if "GetEditCtrl" is a member function of "CTreeCtrl", but it's similar.
Hope this helps! =)
BTW, if it doesn't work, try adding "RedrawWindow()" or "UpdateWindow()" on the "treeCtrl". =)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement