Article View: borland.public.cppbuilder.nativeapi
Article #9831Re: Add shadow to a form
From: Mario Sernicola
Date: Thu, 10 Jun 2004 14:15
Date: Thu, 10 Jun 2004 14:15
31 lines
1776 bytes
1776 bytes
I'm trying with this code:
void __fastcall TForm1::Button6Click(TObject *Sender)
{
const CS_DROPSHADOW = 0x020000;
SetClassLong(Form1->Handle,GCL_STYLE, GetClassLong(Handle, GCL_STYLE) |
CS_DROPSHADOW) ;
SystemParametersInfo(SPI_SETDROPSHADOW, NULL, true, NULL);
// Ask the window and its children to repaint
RedrawWindow(Handle, NULL, NULL, RDW_ERASE | RDW_INVALIDATE | RDW_FRAME |
RDW_ALLCHILDREN);
}
//--------------------------------------------------------------------------
-
but I've an error:
Undefinited symbol 'SPI_SETDROPSHADOW'
I've included "Windows.h" too
Mario Sernicola
> Never have done it myself but here is some information which might be
> usefull:
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/layerwin.asp
>
> Eelke
Technical Details
Message-ID:
<40c86ced$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40c6e830@newsgroups.borland.com> <40c84615$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,700c24ec51a7d447 X-Google-Attributes: gid10cc67,public Reply-To: "Mario Sernicola" <mariosernicola@nospam.libero.it> From: "Mario Sernicola" <mariosernicola@nospam.libero.it> Newsgroups: borland.public.cppbuilder.nativeapi References: <40c6e830@newsgroups.borland.com> <40c84615$1@newsgroups.borland.com> Subject: Re: Add shadow to a form Date: Thu, 10 Jun 2004 16:15:14 +0200 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 80.181.137.60 Message-ID: <40c86ced$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086876909 80.181.137.60 (10 Jun 2004 07:15:09 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail