Change Parent Dialog backcolor from Child Dialog

shobhit_ra's Avatar, Join Date: Apr 2009
Go4Expert Member
Hello All

I have MFC Dialog based application.

I have to change the Background color of parent dialog when the Child Dialog CheckBox is clicked.

Please suggest me and provide me the code.

Thanks a lot.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Pass the needed message to the parent dialog and this should do it.
0
shobhit_ra's Avatar, Join Date: Apr 2009
Go4Expert Member
Which message I have to send to change the BKColor of parent dialog.
And how to send it ? What is the code ? Also how to receive the message in the parent dialog?

Thanks
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Depends on your implementation but CTLCOLOR related messages.

First try to change them using the same dialog and then try doing it from other dialog