c++ - Calling the event handler programmatically in an MFC application -


i working on mfc application (c++)

my checkbox has event hander mapped on_bn_clicked. works fine when user check/uncheck box, i.e. event handler called.

however, when check box programmatically: ((cbutton *)this->getdlgitem(x))-> ->setcheck(1); event handler not called.

what should in order call event handler programmatically?

this normal behavior. wm_command sent when "click" or "user entry" changed button.

this not contignous child controls. other child controls edit control send wm_command en_change message when setwindowtext executed program (the mfc blocks message in dodataexchange).


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -