Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   Change Parent Dialog backcolor from Child Dialog (http://www.go4expert.com/forums/change-parent-dialog-backcolor-child-t16780/)

shobhit_ra 3Apr2009 01:16

Change Parent Dialog backcolor from Child Dialog
 
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.

shabbir 3Apr2009 08:57

Re: Change Parent Dialog backcolor from Child Dialog
 
Pass the needed message to the parent dialog and this should do it.

shobhit_ra 3Apr2009 10:04

Re: Change Parent Dialog backcolor from Child Dialog
 
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

shabbir 3Apr2009 11:43

Re: Change Parent Dialog backcolor from Child Dialog
 
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


All times are GMT +5.5. The time now is 04:03.