Article View: borland.public.cppbuilder.nativeapi
Article #12110Adding BS_MULTILINE to a radio button fails
From: Fernando
Date: Sun, 28 Dec 2003 15:02
Date: Sun, 28 Dec 2003 15:02
24 lines
1567 bytes
1567 bytes
Hi,
If I try to add the BS_MULTILINE style to a TRadioBon that is on a TTabStrip,
it fais. If the same TRadioButton is on the form, it works fine. =:-O
What's going wrong????
Here's the code used to make all the TRadioButtons in a TRadioGroup multiline:
void wordWrap(TRadioGroup * buttons)
{
int const count = buttons->ControlCount;
LONG ret(0);
for( int i(0); i < count; ++i)
{
TWinControl * button = static_cast<TWinControl*> (buttons->Controls[i]);
HWND const handle = button->Handle;
::SetLastError(0);
ret = ::SetWindowLong(handle, GWL_STYLE,
::GetWindowLong(handle, GWL_STYLE) |
BS_MULTILINE);
}
buttons->Refresh();
}
Technical Details
Message-ID:
<oqrouv0va2iimdujpr5ordonsf92og80of@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3777a8848f83194a,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-28 07:09:20 PST From: Fernando <frr@easyjob.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Adding BS_MULTILINE to a radio button fails Date: Sun, 28 Dec 2003 16:02:32 +0100 Message-ID: <oqrouv0va2iimdujpr5ordonsf92og80of@4ax.com> X-Newsreader: Forte Agent 1.9/32.560 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.127.66.80 X-Trace: newsgroups.borland.com 1072623751 217.127.66.80 (28 Dec 2003 07:02:31 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail