MFC : Set window title bar text center alligned

How to set window title bar text center alligned?
RahulKajaveAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
HooKooDooKuConnect With a Mentor Commented:
I'll second satsumo's comment that there is no way affect the title bar other than to set the title bar text.

Basically, the title bar is totally controlled by the operating system.  It's operating system properties that sets the font and color of the title bar, and even when a program is deadlocked and not responding to the operating system, the operating system still has the power to update the title bar.

In other words, you could say that the title bar is outside of the control of the application EXCEPT for the API function that lets you modify the text.

Now of course you could create a window without a title bar, and draw your own title bar.  Then you could have full control over your title bar.  But then you would be losing all the benefits that come with a title bar (such as the power of the operating system to update the title bar even when the application is no longer responding to the operating system).
0
 
satsumoSoftware DeveloperCommented:
There is no way to do that unless the windows has its own frame drawing code.
0
 
RahulKajaveAuthor Commented:
Hi Satsumo,
Do we have any link to support this?

Thanks
0
KuppingerCole Reviews AlgoSec in Executive Report

Leading analyst firm, KuppingerCole reviews AlgoSec's Security Policy Management Solution, and the security challenges faced by companies today in their Executive View report.

 
satsumoSoftware DeveloperCommented:
Not really because it doesn't happen, that's not how Windows works. There is a function to set title bar text. There is no function to set title bar alignment, font or any other style settings. Its difficult to find support for things not happening but I could probably find example of code for custom window frame drawing. Do you have any examples of centered title bar text?
0
 
RahulKajaveAuthor Commented:
Sorry, I dont have any of such examples
0
 
satsumoSoftware DeveloperCommented:
Thanks for the zero points. Question's like this really inspire me to keep using EE.
0
All Courses

From novice to tech pro — start learning today.