I'm working on conversion
vs2012 to 2022 with codejock17.3 to 20.3
clicking green tab then form view will be made in YELLOW area which is full view of the appbut after I converted vs2012 to vs2022 with codejock17.3 to 20.3 form view made and clipped in RED area which is 1/3 area of the app I launch VIEW with below code : VIew* CAPP::LaunchView(UINT nRes, CRuntimeClass *pViewClass) CMultiDocTemplate* pDocTemplate = NULL; POSITION curTemplatePos = GetFirstDocTemplatePosition();
while(curTemplatePos != NULL) { CDocTemplate* curTemplate = GetNextDocTemplate(curTemplatePos); CString str; curTemplate->GetDocString(str, CDocTemplate::docName); if(str == strRes) { pDocTemplate = (CMultiDocTemplate*)curTemplate; break; } }
if(!pDocTemplate) { pDocTemplate = new CMultiDocTemplate( nResourceID, RUNTIME_CLASS(CDummyDoc), RUNTIME_CLASS(CMDIChildWndNew), pViewClass);
AddDocTemplate(pDocTemplate); }
CDummyDoc *pDoc = (CDummyDoc*)pDocTemplate->OpenDocumentFile(NULL); CView *pView, *pPreView = NULL;
if(pDoc) { pDoc->m_hMyMenu = m_hMyMenu; pDoc->SetTitle(strRes); POSITION pos = pDoc->GetFirstViewPosition();
while((pView = pDoc->GetNextView(pos)) != NULL) pPreView = pView; }
return pPreView; }
THE only way make VIEW full is "calling LOADSKIN in onTimer function, after mainframe::onCreate" and then I can see full view. but thing is when I click another ORANGE tab form view made and clipped in RED area which is 1/3 area of the app AGAIN.
there is another factor that popup dialog or form have no problem (well skinned)
I tried so many times but I can not resolve. IN vs2022 v170 MDI SKIN sample call "loadskin" in mainframe constructor and mine is almost same (I call it before ; new mainframe)
Is there any one can help me out. THANKS!
|