Solved

About  CButton question!

Posted on 1997-04-10
3
178 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now