dialog (if it's useful at all). I think it's mostly just a confusing way to
don't have access to it for some reason).
On Dec 7, 6:23 am, mad <m...@vrtainment.de> wrote:
m_eEdit1.SetDlgItemInt(IDC_EDIT1, a);
That could be merely:
SetDlgItemInt(IDC_EDIT1, a);
You misunderstood what SetDlgItemInt does. When applied to a window,
it takes a _child_ window of another window, with given control ID,
and gives it an int (a) to be displayed. IOW, you tell your __dialog__
to find a __child__ with IDC_EDIT1 and give it number a to display. If
you want to be explicit, you can do:
this->SetDlgItemInt(IDC_EDIT1, a);
(It's kind of a pity that SetDlgItemInt belongs in CWnd class, and
that is probably the source of your confusion. Also, if I am not
mistaken (someone, put me straight?), function name is bad in both Win
API and MFC: it's not about a dialog, it's about any window with
children, so e.g. SetChildWindowInt could have been better. Too late
for that now...)
Goran.
P.S. A total beginner, huh? Good luck! (Hey, if you don't have to
learn MFC, but do want C++, why not try some other framework e.g. Qt,
or Ultimate++).