this->GetSafeWnd(); pWnd->GetSafeWnd(); HWND hWnd=this->GetSafeWnd(); 转载于:https://www.cnblogs.com/boneking/archive/2008/11/20/1337803.html