Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Martin24

Windows 7 Centered Titlebar Text

Recommended Posts

I know this question probably is posted in wrong section in the forum because it's about Windows 7. But I have been doing a lot of internet searching and I found practically nothing about this anywhere.

So I want to ask here because I think the knowledge about this is highest in this thread. It would be very interesting if @bigmuscle or maybe anyone else here can answer my question.

My question is if it's possible to get the titlebar text center aligned in Windows 7? I mean like it looks like in Windows 8 and also possible in Windows 10 with Aero Glass for Win8.1+.

I guess dwm.exe must be edited in some way to make it work. I copied dwm.exe to desktop with help of Raw File Copier Pro https://www.novirusthanks.org/products/raw-file-copier-pro/. Without it I couldn't either copy or edit the file, not even in safe mode.

I have no programming knowledge but I can edit dwm.exe in hex editor HxD https://mh-nexus.de/en/hxd/ if someone knows exactly what's need to be edited to make the text centered.

I hope the solution is that easy to only edit dwm.exe. But I have no idea, maybe much more is required to make it work.

Share this post


Link to post
Share on other sites

On 1/16/2019 at 5:25 AM, Martin24 said:

I guess dwm.exe must be edited in some way to make it work.

The actual rendering code is likely located in either dwmcore.dll or uDWM.dll.

On 1/16/2019 at 5:25 AM, Martin24 said:

But I have no idea, maybe much more is required to make it work.

Probably. :) Doesn't look like simple hex editing would be able to accomplish it.

Share this post


Link to post
Share on other sites

Have you looked any further into this? Is there any chance to make it work or is it way too complicated?

Share this post


Link to post
Share on other sites

It would require hacking the DWM, which is beyond my capabilities. The settings for text alignment in the .msstyles file are respected for all windows only with DWM disabled.

Share this post


Link to post
Share on other sites

Yes, I suspected that it would be hard to do. I will try more if I maybe can find the solution at some other site. If I do I will post it here.

Share this post


Link to post
Share on other sites

It can be done with WindowBlinds, there's the option in the accompanying application for developing themes/skins (SkinStudio).

sks6_titlebar_text_01.jpg

window-blind-ice.jpg?itok=hj1x8GMR

Edited by UCyborg
Added another screenshot

Share this post


Link to post
Share on other sites

Thanks for the tip! I actually purchased WindowBlinds already back in 2010 but at that time my computer were so old so running WindowBlinds slowed down the computer so much so I couldn't use it.

Then I have forgot about that program so I haven't tried it in 9 years. But now when I installed it on my brand new computer it runs smoothly without problems.

It seems to have extremely many options so it can be played around with in very many hours. So far I have only tested to center captions and it worked great.

I have looked around but I haven't find any option to just import an .msstyles file. I still use that beautiful theme "Longhorn EV savoury.msstyles" you helped me with before. I want to import that theme and then make the caption change but it doesn't seem possible to do that. But maybe it's there somewhere but I haven't find it yet. Have you seen any kind of import option for msstyles files?

Share this post


Link to post
Share on other sites

I only tried a trial version a year or two ago. AFAIK, it uses its own way to store resources without depending on .msstyles in any way to make it easier to deploy the same skin on multiple Windows versions. I don't remember seeing any option to import the existing .msstyles file. Probably the only way is to make a new skin in SkinStudio using resources exported from existing .msstyles file.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×