Click here to Skip to main content
15,851,701 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want an example of a button created dynamically with a derived class with MFC C++

What I have tried:

Can you help me? I searched in google but I don't find
Updated 17-Sep-19 5:30am

You must create your button class and than create the object using the Create function.

Pay attentation to resize, move and redraw operations of the parent window. You may write some extra code for it.
Share this answer
Member 14594285 17-Sep-19 11:19am    
I created a derived class from Cbutton, but if for example I want my button yellow, Must I use paint in my derived class?
thanks but I would like to see an example
Share this answer
Rick York 17-Sep-19 11:18am    
google is your friend. You should be able to search for one just as well as anyone else can. There are also examples to be found on this site.

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900