Article View: borland.public.cppbuilder.nativeapi
Article #9835Re: Add shadow to a form
From: Remy Lebeau (TeamB)
Date: Thu, 10 Jun 2004 18:22
Date: Thu, 10 Jun 2004 18:22
26 lines
1801 bytes
1801 bytes
"Mario Sernicola" <mariosernicola@nospam.libero.it> wrote in message news:40c88f63$1@newsgroups.borland.com... > RecreateWnd(); By calling that, you are going to lose your custom settings to the class info. You should be setting CS_DROPSHADOW in the CreateParams() method instead so that it is always applied whenever the window is created for any reason (there are other reasons for a window to be re-created during its lifetime). > Now the problem is that I've executed this function: > > ... > SystemParametersInfo(0x1025, false, NULL, 0); > ... > > and now the shadow don't appear even if I reboot my computer! Well, for one thing, you *disabled* the system's ability to display drop shadows. Second, which OS are you actually using to begin with? CS_DROPSHADOW and SPI_SETDROPSHADOW are only available on Win2K and XP. Gambit
Technical Details
Message-ID:
<40c8a7f1$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> <40c88f63$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 From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40c6e830@newsgroups.borland.com> <40c84615$1@newsgroups.borland.com> <40c88f63$1@newsgroups.borland.com> Subject: Re: Add shadow to a form Date: Thu, 10 Jun 2004 11:22:27 -0700 Lines: 28 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: 68.169.168.124 Message-ID: <40c8a7f1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086892017 68.169.168.124 (10 Jun 2004 11:26:57 -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