Print Page | Close Window

Window Frame "glow" effect

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=19394
Printed Date: 21 November 2024 at 3:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Window Frame "glow" effect
Posted By: mojonez
Subject: Window Frame "glow" effect
Date Posted: 09 January 2012 at 3:32pm
Desperately trying to get the Windows 7 style frame window glow (drop shadow on all sides) to work with a skinned CJ main frame window.  All of the CJ skinned window examples I've seen show them without a glow.
Just using CS_DROPSHADOW is insufficient.
 
iTunes and Zune are examples of what im trying to achieve.
 
Have tried using a dwm approach such as this:
 
 
 HRESULT hr;
 int val = 2;
 hr = DwmSetWindowAttribute(this->m_hWnd, 2, &val, 4);
 if (!SUCCEEDED(hr))
 {
  OUTPUT("Failed DWM SetAttribute\n");
 }
 MARGINS margins;
 margins.cxLeftWidth = -1;  // 8
 margins.cxRightWidth = -1;  // 8
 margins.cyBottomHeight = -1; // 20
 margins.cyTopHeight = -1;       // 27
 hr = DwmExtendFrameIntoClientArea(this->m_hWnd, &margins);
 if (!SUCCEEDED(hr))
 {
  OUTPUT("Failed DWM ExtendFame\n");
 }
 
 
But this does not work.  
 
Does anyone have a skinned app out there with the standard aero/win7/vista border glow?
 
thx!
 
 
 



Replies:
Posted By: Willowmaster
Date Posted: 10 January 2012 at 3:16am
If itunes skin has it then it must be the skin itself. Or do you mean the build in themes?

-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0





Posted By: mojonez
Date Posted: 10 January 2012 at 12:59pm
thx for the reply - sorry - meant iTunes the app - not the skin.  Looks like Apple maually draws the glow using separate top level windows for each edge, which I was kinda hoping to avoid.
 
 


Posted By: Willowmaster
Date Posted: 11 January 2012 at 5:29am
Can you post a picture of the glow? Maybe it can be done with skins.

-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0





Posted By: redserpent7
Date Posted: 16 January 2012 at 9:44am
Hi

I too have the same problem. When applying the CJ skin, it overrides Windows aero's drop shadow.

And I really can't see how this can be done using the skin itself since I can't see a way with Skin Builder to draw a frame larger than 5 pixels in width.


Posted By: mojonez
Date Posted: 27 January 2012 at 4:24pm
Yeah Im afraid I gave up and just reverted to a non-skinned aero frame.



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