我从CWinThread派生线程类
class CMutiThread : public CWinThread
{
DECLARE_DYNCREATE(CMutiThread)
protected:
CMutiThread(); // protected constructor used by dynamic creation
// Generated message map functions
//{{AFX_MSG(CMutiThread)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
int CMutiThread::Run()
{
// TODO: Add your specialized code here and/or call the base class
GetNeiborhood();
//通知DLG网上邻居搜索完毕,可以添加到下拉框中了
m_pOwner->PostMessage(WM_NEIBORHOOD_FOUND,0,0);