VC2008 mfc90ud.dll无法找到
项目属性->配置属性->链接器->调试->生成映射文件 选择 Yes (/MAP)
CScrollView中OnInitialUpdate()没调用
在CxxxView类的构造函数内加上
CSize size(0,0);
SetScrollSizes(MM_TEXT,size);
这个是因为窗口一开始就最大化造成的
遍历MDI
CWinApp *pWinApp = AfxGetApp();
POSITION posDocTemplate = pWinApp->GetFirstDocTemplatePosition();
while(posDocTemplate != NULL)
{
CDocTemplate *pDocTemplate = pWinApp->GetNextDocTemplate(posDocTemplate);
POSITION posDocument = pDocTemplate->GetFirstDocPosition();
while(posDocument != NULL)
{
CDocument *pDocument = pDocTemplate->GetNextDoc(posDocument);
POSITION posView = pDocument->GetFirstViewPosition();
while(posView != NULL)
{
CView *pView = pDocument->GetNextView(posView);
CFrameWnd *pFrameWnd = pView->GetParentFrame();
}
}
}