Sorry this question maybe stupid and Iam really a Newbie in C++ programming. And this is more a Question about Microsoft Visual C++ as a Question for common Standarts.

I want to Implement my own Function in a MFC Dialog Program.

Therefore I had to know how the Declaration of the Function has to look like. I need access to all my Membervariables used by my Application.
Secondly I need to know how the Functionbody must look like.
At last how to call the Function.

Any help is welcome, sorry about my direful English,

Myvar