In release version CTabCtrl message fails to reach main Dialog
hi,all
In release version CTabCtrl message fails to reach main Dialog.Here is how the message is handled:
ON_NOTIFY(TCN_SELCHANGE, IDC_TAB_LISTS, OnSelchangeTabLists)
.....
void CTestDlg::OnSelchangeTabLists(NMHDR* pNMHDR, LRESULT* pResult)
{
}
It works in debug version, but not in release version. Why does this happen? I have check some other ON_NOTIFY() works, but not for Tab control.
Re: In release version CTabCtrl message fails to reach main Dialog
I bumped into the same issue (the application only failed in release, not in debug, and even in that case only in same windows and not in others due to the ON_NOTIFY handle) and in my case at least I could solve the problem only by adding the default parameters to the handle void CDlg::OnNotify(NMHDR* pNMHDR, LRESULT* pResult) that I originally was calling with no parameters.
Hope that helps.