AfxGetApp()->GetMainWnd()和AfxGetMainWnd()的区别

1. 获取的是主线程的窗口句柄。

2. AfxGetMainWnd()获取的是所在线程的窗口句柄。

在单线程下他们获得是同一个窗口,多线程下则不是。

猜你喜欢

转载自blog.csdn.net/technologyleader/article/details/80840041