[About MFC]How to to hide the border of CTreeCtrl's CEdit control?

Started by
0 comments, last by TFS_Waldo 18 years, 7 months ago
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!
Advertisement
Maybe you could use the tree's "GetEditCtrl()" function like this:

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". =)
:==-_ Why don't the voices just leave me alone?! _-==:

This topic is closed to new replies.

Advertisement