Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C++/MFC
have a good time
i use visual c++ 2012.
i want to change the backcolor and textcolor of the button,textbox and ... .
i used OnCtlColor but it wans'nt clearly as c# application.that was bad.
also i used the articles in codeproject about it,but i couldn't do it.

how do i do?
thanks in advance
Posted 26-Dec-12 13:33pm
Edited 6-Apr-13 4:45am
Sergey Alexandrovich Kryukov at 26-Dec-12 20:29pm
Not a question; the problem in not clear.
Mahdi Nejadsahebi at 26-Dec-12 22:07pm
it's clear.
i want to change the backcolor of a button in c++,like c# and basic.
how can i do this?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 339
1 Nirav Prabtani 248
2 OriginalGriff 234
3 _Amy 165
4 Maciej Los 145
0 OriginalGriff 7,744
1 Sergey Alexandrovich Kryukov 6,956
2 Maciej Los 3,994
3 Peter Leow 3,708
4 CHill60 2,742

Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 6 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100