# How to subclass a window and shorten the title when using MDITabs

**URL:** <https://clarionhub.com/t/how-to-subclass-a-window-and-shorten-the-title-when-using-mditabs/8565>\
**Category:** uncategorized\
**Created:** [September 4, 2025, 12:58pm UTC](https://clarionhub.com/t/how-to-subclass-a-window-and-shorten-the-title-when-using-mditabs/8565 "2025-09-04T12:58:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LANSRAD](https://clarionhub.com/user_avatar/clarionhub.com/lansrad/32/4519_2.png) [@LANSRAD](https://clarionhub.com/u/LANSRAD)\
**Post date:** [September 4, 2025, 12:58pm UTC](https://clarionhub.com/t/how-to-subclass-a-window-and-shorten-the-title-when-using-mditabs/8565/1 "2025-09-04T12:58:52Z")

</div>

![ClarionSubClassMDITabsDemo](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/0/02fad4f386dfbd8365f6c16bf6975e4367209d30.gif)

I created this demo in response to a post in the Clarion newsgroups asking about how to shorten the window titles when using the MDI tab feature of Clarion on an appframe.

Here is a demo app in C11 that shows how to do it.

[https://www.clarionproseries.com/download/SubClassMDITabs.zip](https://www.clarionproseries.com/download/SubClassMDITabs.zip)

It has five MDI windows and the code applied to three of them so you can  
see how it works and what it is like without it.

I hope this helps someone in the future!

Charles

---

<div class="post-metadata">

**Author:** ![Dirk1](https://clarionhub.com/letter_avatar_proxy/v4/letter/d/977dab/32.png) [@Dirk1](https://clarionhub.com/u/Dirk1)\
**Post date:** [September 5, 2025, 3:00pm UTC](https://clarionhub.com/t/how-to-subclass-a-window-and-shorten-the-title-when-using-mditabs/8565/2 "2025-09-05T15:00:46Z")

</div>

Thanks Charles,

I needed this and it works great.
