Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How I can give an Button a other color ? 3

Status
Not open for further replies.

simmeone

Programmer
Mar 16, 2000
29
DE
Hi there,,

how I can give an Button and his text an other color, for exampel, the main-window have an white background and there is an button of this window. This button should get the color "blue" and the text inside for example "red". How I can do it in the Win32 API not MFC !!

Thank You very much.

SiM
 
Good link... I bookmarked it for future reference.

Rob Marriott
rob@career-connections.net
 
Hi palbano,

that's a very good link but you give me a lot of hard work, now I have to puzzle this into the Win32 API. But thank you very much.
It seems, that this problem, to give buttons and texts other colors is not so trivial.

Oki dok.

SiM
 
Dear SiM,

> It seems, that this problem, to give buttons and texts other colors is not so trivial.

There is a reason for that. The Windows OS is designed for users to control the look and feel of their environment. Changing colors in your application for things like text boxes, buttons and dialogs violates the Windows User Interface Guidelines and will wrest control of the look and feel away from the user of your application.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top