Solved

Coloured CButton...

Posted on 2000-02-18
3
264 Views
Last Modified: 2013-11-20
I am looking for a way to set the background and text colours of a button?(CWnd?)

If this involves subclassing from CButton, overloading the paint service, and using the data exchange, can someone please explain how.

Cheers
Nigel.
0
Comment
Question by:nigel5
3 Comments
 
LVL 31

Expert Comment

by:Zoppo
ID: 2535059
Hi nigel5,

take a look at http://www.codeguru.com/buttonctrl/color_button.shtml ...

hope that helps,

ZOPPO
0
 
LVL 9

Accepted Solution

by:
cdesigner earned 50 total points
ID: 2535602
use CButtonST
colors, icons, with transparency support , pictures and more , this the best
http://www.codeproject.com/buttonctrl/CButtonST.asp
0
 

Author Comment

by:nigel5
ID: 2536076
Thats the one, and more.

Cheers.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 121
repeatSeparator  java  challenge 13 57
ODBC Connection Logging, ADO.NET 6 64
sameEnds challenge 3 158
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…
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…

776 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