Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Window Frame "glow" effect
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Window Frame "glow" effect

 Post Reply Post Reply
Author
Message
mojonez View Drop Down
Groupie
Groupie


Joined: 16 September 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mojonez Quote  Post ReplyReply Direct Link To This Post Topic: Window Frame "glow" effect
    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!
 
 
 
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post 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



Back to Top
mojonez View Drop Down
Groupie
Groupie


Joined: 16 September 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mojonez Quote  Post ReplyReply Direct Link To This Post 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.
 
 
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post 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



Back to Top
redserpent7 View Drop Down
Newbie
Newbie


Joined: 15 January 2012
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote redserpent7 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
mojonez View Drop Down
Groupie
Groupie


Joined: 16 September 2008
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mojonez Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2012 at 4:24pm
Yeah Im afraid I gave up and just reverted to a non-skinned aero frame.
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.219 seconds.