参考: http://blog.youkuaiyun.com/clever101/article/details/5372116 《使用AfxGetMainWnd函数的一个心得》 匿名用户评论: AfxGetThread 是获取当前执行线程的CWinThread对象的指针而已,