[b][red]This message was edited by jms51 at 2002-10-21 4:11:40[/red][/b][hr]
I am developing a dialog application that has several classes that
are not children of CWnd (they are separate functions that do various data manipulations). In one of the classes I need to fill an
edit control in the dialog window. To do this, I need (I think) to execute "UpdateWindow(HWND hWnd)" after the statement to write to the edit control. I have used "HWND m_hWnd = FindWindow( "class", NULL ); and lots of variations to get the dialog window handle to pass to UpdateWindow but my code will never update the edit control until the entire program execution is complete - i.e., after I return out of the function back to ...Dlg and end program execution. What am I doing wrong? Am I taking a completely wrong approach to this? Thanks for helping me out!