🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13918

How can I drop a border on a Window (Form) that was shaped via: CreateRoundRectRgn ( )

#13918
From: Oren (Halvani.de)
Date: Mon, 08 Sep 2003 21:56
19 lines
1415 bytes
hi dear builders,

can someone give me a hint how I can drop a border around a window
that was shaped by a: CreateRoundRectRgn( ) ??

I mean something like Form1->BorderStyle = bsSingle;


here is what I have...

/***************************************************/

void __fastcall TfrmCredits::FormShow(TObject *Sender)
{
   HRGN hRegion = CreateRoundRectRgn(0,0, frmCredits->Width,
frmCredits->Height,50, 50);

   SetWindowRgn(frmCredits->Handle, hRegion, true);
}
Technical Details
Message-ID: <3f5cfb60$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,23d0ad560d6e34ac,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-08 15:03:20 PST
From: "Oren \(Halvani.de\)" <neroniker@gmx.de>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How can I drop a border on a Window (Form) that was shaped via: CreateRoundRectRgn ( )
Date: Mon, 8 Sep 2003 23:56:51 +0200
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 213.6.46.54
Message-ID: <3f5cfb60$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063058272 213.6.46.54 (8 Sep 2003 14:57:52 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail