Limiting label length when editing


How to Help Your Business Become an AI Early Adopter

To limit the length of text that can be entered when editing an item label, you have to add a handler for the TVN_BEGINLABELEDIT notification. Within this handler get the edit control and call the LimitText() function.
void COutline::OnBeginLabelEdit(NMHDR* pNMHDR, LRESULT* pResult) 
        // Limit text to 127 characters

        *pResult = 0;


  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • How does this impact your content strategy? Content management markets are changing rapidly. Due to increased expectations of users, changes in IT and the need for organizations to rethink their digital strategy, Gartner has launched new Magic Quadrants (MQs) for Content Services Platforms (CSP) and Content Collaboration Platforms (CCP). These MQs have updated the definition of previous Enterprise Content Management (ECM) and Enterprise File Sync and Share (EFSS) markets respectively, and are tightly connected …

  • Milliseconds matter. Make your systems faster with an uncompromising approach to designing and deploying your cloud foundation on IBM Cloud.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date