473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Windows MFC/Win32 question

AdrianH
1,251 Expert 1GB
Does anybody know if there is a way of changing the font in the title bar of a tool window (dialogue window with the tool bit set)?

If I were to change it, would it cause the height of the title bar to change if the font was not as tall, like if I changed it in the control panel.

Also, is there a way of calculating the minimum size of a checkbox with text?

Thanks,


Adrian
Jun 6 '07 #1
3 1708
ahammad
79
Does anybody know if there is a way of changing the font in the title bar of a tool window (dialogue window with the tool bit set)?

If I were to change it, would it cause the height of the title bar to change if the font was not as tall, like if I changed it in the control panel.

Also, is there a way of calculating the minimum size of a checkbox with text?

Thanks,


Adrian
I remember reading something about this in my MFC book...I'll find it and get back to you.
Jun 6 '07 #2
AdrianH
1,251 Expert 1GB
I remember reading something about this in my MFC book...I'll find it and get back to you.
Thanks, much appreciated. I was going to approach it the checkbox question by:
Expand|Select|Wrap|Line Numbers
  1. .  +---+  +---------------------+
  2.    |   |  | Check box text      |
  3.    +---+  +---------------------+
  4.   Rect A  Rect B
  1. somehow getting the rects of the checkbox(A) and the text box(B)
  2. creating a rect that is a union of the two(C) (because height of A and B may not be the same)
  3. Calc the rect of the text “Check box text” (D)
  4. C.right = B.left + D.Width()
But I’m not sure how to get the rects of the checkbox and the text box.


Adrian
Jun 6 '07 #3
ahammad
79
Alright, so far all I got from the book is that you can only change the font style/size of the text in the dialog box itself, not the title. I'm not sure if there is something else in later chapters, but I'm still looking...
Jun 6 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: PHP2 | last post by:
I am pretty new at this so forgive me if this is a stupid question, but is there a simple way to create a window with C++... Maybe a library or something with simple window commands?
2
by: Paul Steele | last post by:
Is there any way to check for open Explorer windows and if any are found, tell Windows Explorer to close them. I don't want a brute force method of killing Explorer and letting it restart. I'd...
1
by: Günther Rühmann | last post by:
Hi, I´m not sure if i´m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group...
9
by: Günther Rühmann | last post by:
Hi, I´m not sure if i´m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group...
7
by: G. Schmelzer | last post by:
Hi Ng, I've got a problem with the debugging of a Windows Application. I start the app in Debug Mode. But when an exception appears, vs.net doesen't jump to code line where the exception...
113
by: dan | last post by:
For writing a Windows desktop application, how much harder is it to use the Windows C API than C#/.NET, assuming the coding is done in an editor? What specific aspects were more difficult? I'm...
2
by: Budhi Saputra Prasetya | last post by:
Hi, I managed to create a Windows Form Control and put it on my ASP .NET page. I have done the suggestion that is provided by modifying the security settings. From the stack trace, I would...
16
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. I'm looking for a way to programmatically retrieve the following if possible: Windows Installation Key or COA from the registry Windows installed...
2
by: sambo251 | last post by:
After running a few updates I get this very annoying "Windows Installer" error #1706 that will ne go away! It keeps saying that it cannot find the file "instantsharedevices.msi", that it is on...
5
by: =?Utf-8?B?Qkw=?= | last post by:
Hello friends In c# 2005 I have written a function to access "font file name" by "Font name" and it is working fine in all the windows version other than vista, in vista it is throughing an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.