Solved

About  CButton question!

Posted on 1997-04-10
3
186 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
[X]
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
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

688 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