Print Page | Close Window

Menu shadow is 100% black above DirectShow surface

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15612
Printed Date: 03 December 2024 at 12:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Menu shadow is 100% black above DirectShow surface
Posted By: znakeeye
Subject: Menu shadow is 100% black above DirectShow surface
Date Posted: 13 November 2009 at 7:27am
XTP 12.0.1.
 
The shadow goes completely black here. I guess you perform some XOR operation with the underlying GDI, which is (I guess) black.
 
I'm not sure if I'd call this a bug, but it's indeed a problem. The menu is ugly when our 3D window is shown :(
 
 
(Since this is a hardware-accelerated DirectShow surface, I had to paint the white background myself)


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: Oleg
Date Posted: 16 November 2009 at 5:47am
Hi,
 
We use stadnard UpdateLayeredWindow API method to make shadow transparent.
 
you can disable Alpha shadow with such patch:
 
BOOL CXTPShadowManager::IsAlphaShadow()
{
 return FALSE;
}


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 16 November 2009 at 8:06am
Ok, will try that. 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