如何在继承自CWinThread的UI线程中建立消息循环
听说要重载RUN但是google到的有用信息是在太少了.
能否给我个详细点的说明,告诉我该如何操作.
比如我添加消息相应
BEGIN_MESSAGE_MAP(Messenger, CWinThread)
ON_WM_TIMER()
END_MESSAGE_MAP()
会提示
error C2440: 'static_cast' : cannot convert from 'void (__thiscall Messenger::* )(UINT)' to 'void (__thiscall CWnd::* )(UINT_PTR)'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
怎么才能建立消息循环呢?