ON_WM_TIMER()在编译器从32位转换为64位的时候, 出现的问题;
class CFlatComboBox : public CComboBox (基类为CWnd)
为了重载CWnd的函数:OnTimer(UINT nIDEvent)
需要在MASSEGE_MAP()加入: ON_WM_TIMER()
然后再CFlatComboBox 中加入相应函数:
afx_msg void OnTimer(UINT nIDEvent);
此时切换到win64就会出错: void (__cdecl xx::* )(UINT)”转换为“void (__cdecl CWnd::* )(UINT_PTR)
这里改为:
afx_msg void OnTimer(UINT_PTR nIDEvent);
即可;