![]() |
After loadskin TAB VIEW UI cliped |
Post Reply
|
| Author | |
aquaxys
Groupie
Joined: 19 December 2022 Location: Seoul Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Topic: After loadskin TAB VIEW UI clipedPosted: 7 hours 2 minutes ago at 5:54am |
|
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 app but 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! |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |