Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - After loadskin TAB VIEW UI cliped
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

After loadskin TAB VIEW UI cliped

 Post Reply Post Reply
Author
Message
aquaxys View Drop Down
Groupie
Groupie
Avatar

Joined: 19 December 2022
Location: Seoul
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote aquaxys Quote  Post ReplyReply Direct Link To This Post Topic: After loadskin TAB VIEW UI cliped
    Posted: 10 hours 20 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!

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.066 seconds.