Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

About  CButton question!

Posted on 1997-04-10
3
183 Views
Last Modified: 2013-11-20
Dear sir,

  I would like to set a text on the button.  However, the text is too large to fit on the button.  Therefore, I have to set a smaller size so that the text can fit on the button.  can anyone tell me how to do that?


thanks!

Benson
0
Comment
Question by:benson031397
3 Comments
 
LVL 1

Expert Comment

by:rhgaracci
ID: 1300964
Again, answers are generally given for POINTS!
0
 

Author Comment

by:benson031397
ID: 1300965
Adjusted points to 45
0
 
LVL 1

Accepted Solution

by:
xbwen earned 40 total points
ID: 1300966
  Since CButton is also derived from CWnd, you can use CWnd::SetFont() to smaller you text.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
repeateFront java challenge 31 94
Folder Comparison 12 54
How do you programatically show and hide the Windows 10 On-Screen-Keyboard? 3 795
format the code in java 6 101
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question