Open nyanpasu64 opened 6 years ago
In Source/InstrumentListCtrl.cpp, I mapped LVN_ITEMCHANGED events to CInstrumentList::OnNMClick. When I create or click an instrument...
Both SelectInstrument functions are called in many places. How can OnNMClick filter out internal events?
@owomomo do you have any ideas?
http://www.flounder.com/avoid_en_change.htm related: "One of the problems that is intrinsic to Windows is the fact that an ordinary Edit control, MFC class CEdit, will generate EN_CHANGE notifications any time the text changes, even if the text is changed programmatically by the application."
https://github.com/HertzDevil/0CC-FamiTracker/issues/69 http://hertzdevil.info/forum/index.php/topic,24.0.html