Article View: borland.public.cppbuilder.nativeapi
Article #4001Re: Length of text in MessageBox function
From: Richard Casten
Date: Thu, 30 Mar 2006 22:53
Date: Thu, 30 Mar 2006 22:53
12 lines
1759 bytes
1759 bytes
"Remy Lebeau (TeamB)" wrote: > You'll have to intercept and discard the original WM_SETFONT messages and > then send your own message to the default handler specifyign your own HFONT > handle. I was able to do and, as expected, the character string was clipped since the bold font produced a string longer than the window. I need to be able to resize the windows. I have tried to use SetWindowPos. It works for the parent window of the text but when I use it for the window containing the text, the text disappears. I was resizing when I received the WM_SETFONT message after changing the font.
Technical Details
Message-ID:
<442C615F.2A382D1D@aero.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4422D533.32E31292@aero.org> <4422ea15$1@newsgroups.borland.com> <4422FA56.83B7F39@aero.org> <442319ab@newsgroups.borland.com> <442ADEA7.B11F561C@aero.org> <442af3e1$1@newsgroups.borland.com> <442C0FDB.EE56D321@aero.org> <442C24BE.8091C591@aero.org> <442c59a6$3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b8d4aea1a094904b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <442C615F.2A382D1D@aero.org> Date: Thu, 30 Mar 2006 14:53:19 -0800 From: Richard Casten <richard.casten@aero.org> X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Length of text in MessageBox function References: <4422D533.32E31292@aero.org> <4422ea15$1@newsgroups.borland.com> <4422FA56.83B7F39@aero.org> <442319ab@newsgroups.borland.com> <442ADEA7.B11F561C@aero.org> <442af3e1$1@newsgroups.borland.com> <442C0FDB.EE56D321@aero.org> <442C24BE.8091C591@aero.org> <442c59a6$3@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 130.221.27.185 X-Trace: newsgroups.borland.com 1143759094 130.221.27.185 (30 Mar 2006 14:51:34 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail