Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Problem with skinmanager
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with skinmanager

 Post Reply Post Reply
Author
Message
shshin View Drop Down
Newbie
Newbie


Joined: 21 January 2022
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote shshin Quote  Post ReplyReply Direct Link To This Post Topic: Problem with skinmanager
    Posted: 21 January 2022 at 5:05am

I recently updated to 20.2.0 (Toolkit Pro for Visual C++).

I’m using SkinManager. XTPSkinManager()->LoadSkin(L"Office2010.cjstyles");

MainFrame is captionless window and have multiple child windows. DoubleClick on the caption area or change the window size through the max button.

There is a problem that the newly drawn area is not drawn when the window size is changed after the update.

Even after changing the size, mainframe is drawn only with the size at the time of creation.

Child window is drawn only in ptMinTrackSize size.

There was no problem with 18.0.1. If no skin is applied, it works normally.

uploads/9535/TestSkin.zip

Back to Top
shshin View Drop Down
Newbie
Newbie


Joined: 21 January 2022
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote shshin Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2022 at 1:50am
I found the problem.

void CXTPSkinObjectFrame::UpdateFrameRegion(CSize szFrameRegion)
// in v18, not in v20.2
      if (m_bRegionChanged && !HasWindowBorder())
{
SetWindowRgn(NULL, TRUE);
m_bRegionChanged = FALSE;
}
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.141 seconds.