Click here to Skip to main content
16,022,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am able to get the OnCtlColor function called for Dialog but not for my edit control in that dialog;

Actually my edit control is defined in one class which is accessible from dialog. Example:
CSampleDlg::m_subclass->EditButton

If I wish to change the color of EditButton from my Editbutton class itself, what can be done?

Can I send a message from Dialog once OnCtlColor() is called in the dialog? Is it possible?
Posted
Updated 27-Jan-11 7:41am
v2

1 solution

Found the solution by using message reflection methodology.
 
Share this answer
 

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