 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Martin Nijhoff Guest
|
Posted: Mon May 10, 2004 3:11 pm Post subject: Re: accessing TCustomDBGrid::WMSize |
|
|
Hi Henk,
WMSize is a private member function of TCustomDBGrid and thus not
accessible in a derived class.
Modify your class definition like this:
class TMyDBGrid : public TCustomDBGrid
{
private:
void __fastcall WMSize (TWMSize &Message);
...
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_SIZE, TWMSize, WMSize)
END_MESSAGE_MAP(TCustomDBGrid)
}
and add the WMSize member function like this:
void __fastcall TMyDBGrid::WMSize (TWMSize &Message)
{
// Call the inherited message handler.
TCustomDBGrid::Dispatch(&Message);
// Do your own processing here.
}
Regards,
Martin Nijhoff
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|