Print Page | Close Window

XTPSkinManager->LoadSkin and Direct2D *BUG*

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=24523
Printed Date: 15 November 2024 at 12:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTPSkinManager->LoadSkin and Direct2D *BUG*
Posted By: Marecki Marek
Subject: XTPSkinManager->LoadSkin and Direct2D *BUG*
Date 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.



Replies:
Posted By: astoyan
Date 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.



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