Change Parent Dialog backcolor from Child Dialog

Go4Expert Member
3Apr2009,01:16   #1
shobhit_ra's Avatar
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.
Go4Expert Founder
3Apr2009,08:57   #2
shabbir's Avatar
Pass the needed message to the parent dialog and this should do it.
Go4Expert Member
3Apr2009,10:04   #3
shobhit_ra's Avatar
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
Go4Expert Founder
3Apr2009,11:43   #4
shabbir's Avatar
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