Hi, In win32 programming, what is the correct way to exchange data? Do we have to use global variables to exchange data? Say, I have a class member function within which that I create a dialog by using CreateDialog(). Then, in the dialog procedure, I expect to accept some user inputs. Then, how can save the user input into the data member of my class. For example:
CreateDialog(x, x, x, DialogProc);
LRESULT DialogProc(x, x, x, x)
// How can I save the user inputs here into the member data of MyClass?