[Help w/ MFC] Passing variables from one dialog to another.

beyonddc

Senior member
May 17, 2001
910
0
76
I'm a newbie in MFC programming and I have a question regarding w/ passing variables from one dialog to another dialog.

Let say I have a variable of int a in dialog1
and
I clicked a button which opens up dialog2. I would want to pass my int a from dialog1 and store it into another variable inside dialog2.

Any suggestion?

Thanks!