My CFormView class is structured as follows:
class FormViewClass : public CFormView
{
...
FormViewClass();
void Initialize();
virtual void OnInitialUpdate();
...
};
Ideally, I would like to call the Initialize () function in the constructor body as follows:
FormViewClass::FormViewClass()
{
...
Initialize();
...
}
However, since I want this function to be responsible for all the initialization of this class at creation, and it contains the initialization of MFC objects such as combobox, edit control, checkbox control, switch control, etc., should I be calling instead here's the Initialize () function, as I thought:
void FormViewClass::OnInitialUpdate()
{
Initialize();
}
-MFC- ( - Iniitalize() ) MFC OnIniitalUpdate(). , . .