Jump to content
  • Advertisement
Sign in to follow this  
was2_0

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

This topic is 4809 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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". =)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!