• Advertisement
Sign in to follow this  

change a MFC widget without triggering its callback

This topic is 4249 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a textbox, and I have a callback to do something when the value changes. However I set the value in code, and in this case, I don't want to trigger the callback. Is it possible? I set the textbox with SetDlgItemText.

Share this post


Link to post
Share on other sites
Advertisement
I would say the most elegant solution isn't to disable the callback at certain times (might as well just use a boolean flag or something then). The best solution in my mind would be to have your "do something" function still work even when the value is manually put into the edit box.

It's hard to describe how that might work without know what is done when the callback is executed. Care to share?

Matt

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement