Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Menu shadow is 100% black above DirectShow surface
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Menu shadow is 100% black above DirectShow surface

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Menu shadow is 100% black above DirectShow surface
    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/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 16 November 2009 at 8:06am
Ok, will try that. 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.156 seconds.