Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - XTPSkinManager->LoadSkin and Direct2D *BUG*
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTPSkinManager->LoadSkin and Direct2D *BUG*

 Post Reply Post Reply
Author
Message
Marecki Marek View Drop Down
Newbie
Newbie


Joined: 30 September 2024
Location: Poland
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marecki Marek Quote  Post ReplyReply Direct Link To This Post Topic: XTPSkinManager->LoadSkin and Direct2D *BUG*
    Posted: 13 November 2024 at 8:46am
All windows, frame and status bars are flashing when app window is resizing
and Direct2D BeginDraw(), EndDraw() are calling. There is no need to draw anything, just call Direct2D HwndRenderTarget BeginDraw() and EndDraw().

The problem exist after XTPSkinManager->LoadSkin() is used and
HwndRenderTarget is created using flag D2D1_RENDER_TARGET_TYPE_HARDWARE.

With D2D1_RENDER_TARGET_TYPE_SOFTWARE flag is used instead HARDWARE
or XTPSkinManager->LoadSkin() is not called everything works ok.
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 304
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2024 at 8:33am
Hello Marek, try to call XTPSkinManager()->Remove(hwndRenderTarget) after a skin is loaded and D2D window is created. Hopefully it'll help.
Back to Top
Marecki Marek View Drop Down
Newbie
Newbie


Joined: 30 September 2024
Location: Poland
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marecki Marek Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2024 at 11:54am
Doesn't work. I can call LoadSkin() and skin every window except CXTPMDIFrameWnd with xtpSkinApplyFrame style.
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.156 seconds.