|
RECT rect;
GetClientRect(acedGetAcadFrame()->m_hWndMDIClient,&rect); //获取MDI区域大小
CWnd * pMdi=acedGetAcadFrame()->GetWindow(GW_CHILD); //获取MDI区域窗体句柄
HWND h_pSub1=FindWindowEx(pMdi->m_hWnd,NULL,NULL,_T("Drawing1.dwg")); //根据需要修改要查找的窗体标题,打开的图纸往往在标题里包含文件名,这样就可以知道该排哪个窗体了
SetWindowPos(h_pSub1,NULL,0,0,rect.right/2,rect.bottom,SWP_SHOWWINDOW);
HWND h_pSub2=FindWindowEx(pMdi->m_hWnd,NULL,NULL,_T("Drawing2.dwg"));
SetWindowPos(h_pSub2,NULL,rect.right/2,0,rect.right/2,rect.bottom,SWP_SHOWWINDOW);
#在这里快速回复#
post_newreply |
|