🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Inheriting from TCustomComboBox

#17274
From: Rusty
Date: Thu, 27 Mar 2003 16:05
14 lines
1563 bytes
Greetings:

I am trying to make a custom combo box that is like the TColorBox component
but has additional support for colors with alpha.  The problem I'm having is
that I can't seem to override the DrawItem method.  In my derived class, the
function declaration is the same as the one in its parent's class,
TCustomComboBox.  The declaration looks like this:

virtual void __fastcall DrawItem(int Index, const Types::TRect &Rect,
Windows::TOwnerDrawState State);

In my class, I have it declared exactly as shown above, but it never gets
called from my control.  Instead, it calls the parent class's DrawItem
method.  Any ideas what I am doing wrong?
Technical Details
Message-ID: <3e832142$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!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,c12ea0098efc8bfe,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-27 08:09:06 PST
Reply-To: "Rusty" <rustyr@redstorm.com>
From: "Rusty" <rustyr@redstorm.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Inheriting from TCustomComboBox
Date: Thu, 27 Mar 2003 11:05:23 -0500
Lines: 16
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: 208.221.166.2
Message-ID: <3e832142$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048781122 208.221.166.2 (27 Mar 2003 08:05:22 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail