🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Painting with Windows...

#10675
From: Ed Mulroy [TeamB]
Date: Wed, 07 Apr 2004 23:45
34 lines
2353 bytes
> ...I'm just subclassing the group box with SetWindowLong....

You ARE calling the original window procedure with CallWindowProc
aren't you?

The problem you are seeing is not one I have encountered.  I have
never had a static text control fail to properly paint when I sent it
a SetWindowText.

.  Ed

> Mark Morrisson wrote in message
> news:40747493$1@newsgroups.borland.com...
>
> Don't worry, Ed, I know I can rely on MSDN too.
>
> About BeginPaint and EndPaint, I guess the information that
> interests me is the setting of information internal to Windows,
> as you said. ;-)
>
> After a call to BeginPaint/EndPaint, it's like if Windows was
> stopping drawing the window, even if I call DefWindowProc right
> afterwards... Though, with GetDC/ReleaseDC, the window outline
> is drawn.
>
> Of course, Ed, I don't use exotic styles. The static controls have
> the following styles : WS_CHILD | WS_VISIBLE | SS_LEFT. In
> answer to your question, I'm just subclassing the group box with
> SetWindowLong. Well, I've tried to send them WM_ENABLE but
> it didn't solve the problem. The old caption and the new one still
> superpose...
>
> Well, Ed, that's OK, you've spent enough time on that issue. It's
> not a blocking bug so I will give it up by now.
Technical Details
Message-ID: <407492c0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40730473$1@newsgroups.borland.com> <407314f2$1@newsgroups.borland.com> <4073caac$1@newsgroups.borland.com> <40743f39@newsgroups.borland.com> <40747493$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d9cf3e1d5e3d04cb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-07 17:06:20 PST
From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40730473$1@newsgroups.borland.com> <407314f2$1@newsgroups.borland.com> <4073caac$1@newsgroups.borland.com> <40743f39@newsgroups.borland.com> <40747493$1@newsgroups.borland.com>
Subject: Re: Painting with Windows...
Date: Wed, 7 Apr 2004 19:45:41 -0400
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <407492c0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1081381568 24.74.175.102 (7 Apr 2004 16:46:08 -0800)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail