How to update main window from a child dialog??
-
Hi, I am having this image viewing program where I have a dialog that gets created (using DoModal) for adjusting brightness/contrast with initial values set by main frame. I would like to know how I can update the image thats being displayed on main frame whenever I change the values in the pop up dialog. thanks in advance, -PNT
PKNT
-
Hi, I am having this image viewing program where I have a dialog that gets created (using DoModal) for adjusting brightness/contrast with initial values set by main frame. I would like to know how I can update the image thats being displayed on main frame whenever I change the values in the pop up dialog. thanks in advance, -PNT
PKNT
-
or pass a pointer to the main window to the child dialog. or use the observer/observable pattern.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
or pass a pointer to the main window to the child dialog. or use the observer/observable pattern.
Maximilien Lincourt Your Head A Splode - Strong Bad
yep got it.... the problem is I am including the header file of my child dialog in my DOC header file and when I try to define a pointer to to a doc object in my child dialog's header file by including the main frame's header file in it, it gave me error of undefined symbol error. Then i tried to include the child dialog's header file in the main frame's cpp file and now its working fine. thanks for your replies.
PKNT