I am working on an MFC application (C++)
My checkbox has an event hander mapped to the ON_BN_CLICKED
.
It works fine when the user check/uncheck the box, i.e. the event handler is called.
However, when I check the box programmatically: ((CButton *)this->GetDlgItem(x))-> ->SetCheck(1);
the event handler is not called.
What should I do in order to call the event handler programmatically?