Code analysis:
ON_NOTIFY(TCN_SELCHANGE, IDC_TAB_HISTORY_TYPE,
&CAssignHistoryDlg::OnTcnSelchangeTabHistoryType)
Warning C26454:
Arithmetic overflow: '-' operation produces a negative unsigned result at compile time (io.5).
The definition of TCN_SELCHANGE is:
#define TCN_FIRST (0U-550U)
#define TCN_SELCHANGE (TCN_FIRST - 1)
I can't see what else I can do!

You are trying to subtract a larger unsigned value from a smaller unsigned value and it's causing the result to wrap past zero. In your case, I assume
TCN_FIRSTis defined as 0 so settingTCN_SELCHANGEto one will fix the problem.You should also be using
constexprorconstinstead of defines anyway.According to MSDN:
Arithmetic overflow checks in C++ Core Check