3,980 questions
If I remember correctly the update handlers are called from OnIdle, so I'd assume it is possible and you should check the handle before trying to use it.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
hi in my mfc app i creates a clistctrl object in OnCreate message of main frame and in some OnUpdateUI fnctions i used that list ctrl.GetItemCount() for example to enable or disable a menu item. but today i runned app in debug mode the OnUpdateUI function asserted by debuger and the list ctrl wnd handle was NULL! i think onupdateui called before OnCreate so this is normal or it is mfc bug? how this possible?! thanks
If I remember correctly the update handlers are called from OnIdle, so I'd assume it is possible and you should check the handle before trying to use it.