Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 May : Setting Drop Shadow on external Window

www.cryer.info
Managed Newsgroup Archive

Setting Drop Shadow on external Window

Subject:Setting Drop Shadow on external Window
Posted by:"Ralf Ruiz" (rodrigo.ru..@gmail.com)
Date:Thu, 19 May 2005 21:06:26

Hi, i need to Show the drop shadow effect for any window under XP, so i use
the
SetClassLong funtion , so it looks like:
const
  CS_DROPSHADOW = $00020000;
...
WndHandle //external window handler.
SetClassLong(WndHandle ,GCL_STYLE, GetClassLong(WndHandle , GCL_STYLE) or
CS_DROPSHADOW) ;
//and then repaint the window

But, when evaluate GetClassLong(WndHandle , GCL_STYLE) always returns 0, and
the effect is not shown.
how can set the shadow effect for any external window?
thanks.

Replies:

www.cryer.info
Managed Newsgroup Archive