Print Page | Close Window

After loadskin TAB VIEW UI cliped

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24617
Printed Date: 04 December 2025 at 7:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: After loadskin TAB VIEW UI cliped
Posted By: aquaxys
Subject: After loadskin TAB VIEW UI cliped
Date Posted: 04 December 2025 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!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net